diff --git a/Directory.Build.props b/Directory.Build.props
index a4dfa6426..de07898fc 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -2,20 +2,26 @@
False
- False
True
- True
- net461
+ net472
netstandard2.0
+ net6.0-macos
- $(DotNetFrameworkTarget)
- net6.0-macos
+
- false
+
+
+
+ \Library\Frameworks\Xamarin.Mac.framework\Versions\Current\lib\x86_64\full\Xamarin.Mac.dll
+ \Library\Frameworks\Xamarin.Mac.framework\Versions\Current\lib\64bits\full\Xamarin.Mac.dll
+ $(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\Xamarin.Mac\v2.0\Xamarin.Mac.dll
+ $(MSBuildProgramFiles32)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\Xamarin.Mac\v2.0\Xamarin.Mac.dll
+ $(MSBuildToolsPath)\..\..\..\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\Xamarin.Mac\v2.0\Xamarin.Mac.dll
diff --git a/TestApps/GtkOnMacTest/GtkOnMacTest.csproj b/TestApps/GtkOnMacTest/GtkOnMacTest.csproj
index 7972aa331..e9e8334de 100644
--- a/TestApps/GtkOnMacTest/GtkOnMacTest.csproj
+++ b/TestApps/GtkOnMacTest/GtkOnMacTest.csproj
@@ -7,6 +7,7 @@
WinExe
GtkOnMacTest
GtkOnMacTest
+ v4.7.2
true
diff --git a/TestApps/GtkOnWindowsTest/GtkOnWindowsTest.csproj b/TestApps/GtkOnWindowsTest/GtkOnWindowsTest.csproj
index f0f72e582..b4c170d20 100644
--- a/TestApps/GtkOnWindowsTest/GtkOnWindowsTest.csproj
+++ b/TestApps/GtkOnWindowsTest/GtkOnWindowsTest.csproj
@@ -7,6 +7,7 @@
WinExe
GtkOnWindowsTest
GtkOnWindowsTest
+ v4.7.2
true
diff --git a/TestApps/GtkTest/GtkTest.csproj b/TestApps/GtkTest/GtkTest.csproj
index 0feba48a5..199f1694f 100644
--- a/TestApps/GtkTest/GtkTest.csproj
+++ b/TestApps/GtkTest/GtkTest.csproj
@@ -7,6 +7,7 @@
Exe
GtkTest
GtkTest
+ v4.7.2
True
diff --git a/TestApps/MixedGtkMacTest/MixedGtkMacTest.csproj b/TestApps/MixedGtkMacTest/MixedGtkMacTest.csproj
index a9226b6e7..aa70f78af 100644
--- a/TestApps/MixedGtkMacTest/MixedGtkMacTest.csproj
+++ b/TestApps/MixedGtkMacTest/MixedGtkMacTest.csproj
@@ -7,6 +7,7 @@
Exe
MixedGtkMacTest
MixedGtkMacTest
+ v4.7.2
True
diff --git a/TestApps/Samples/Samples.csproj b/TestApps/Samples/Samples.csproj
index 6000fb962..a8747c911 100644
--- a/TestApps/Samples/Samples.csproj
+++ b/TestApps/Samples/Samples.csproj
@@ -7,6 +7,7 @@
Library
Samples
Samples
+ $(DotNetCoreTarget);$(DotNetFrameworkTarget)
True
diff --git a/TestApps/XamMacTest/XamMacTest.csproj b/TestApps/XamMacTest/XamMacTest.csproj
index a1e2f9227..d9be5d5ed 100644
--- a/TestApps/XamMacTest/XamMacTest.csproj
+++ b/TestApps/XamMacTest/XamMacTest.csproj
@@ -10,6 +10,7 @@
MacTest
True
true
+ v4.7.2
True
diff --git a/Testing/GtkTestRunner.csproj b/Testing/GtkTestRunner.csproj
index 9b13958f5..49d7194bd 100644
--- a/Testing/GtkTestRunner.csproj
+++ b/Testing/GtkTestRunner.csproj
@@ -8,6 +8,7 @@
GtkTestRunner
GtkTestRunner
bin\GtkTestRunner.exe
+ v4.7.2
True
diff --git a/Xwt.WPF/Xwt.WPF.csproj b/Xwt.WPF/Xwt.WPF.csproj
index b5244dab7..c86c855c5 100644
--- a/Xwt.WPF/Xwt.WPF.csproj
+++ b/Xwt.WPF/Xwt.WPF.csproj
@@ -1,7 +1,7 @@
- net472
+ $(DotNetFrameworkTarget)
false
true
..\xwt.snk
diff --git a/Xwt.XamMac/Xwt.XamMac.csproj b/Xwt.XamMac/Xwt.XamMac.csproj
index 16b515fda..7e69d4766 100644
--- a/Xwt.XamMac/Xwt.XamMac.csproj
+++ b/Xwt.XamMac/Xwt.XamMac.csproj
@@ -8,7 +8,7 @@
Xwt.XamMac
True
..\xwt.snk
- $(MacTargetFramework)
+ $(DotNetMacosTarget);$(DotNetFrameworkTarget)
false
True
10.14
@@ -47,7 +47,7 @@
-
+
$(XamMacPath)
diff --git a/Xwt/Xwt.csproj b/Xwt/Xwt.csproj
index 5744433b1..b9414513c 100644
--- a/Xwt/Xwt.csproj
+++ b/Xwt/Xwt.csproj
@@ -6,6 +6,7 @@
Xwt
Xwt
True
+ $(DotNetCoreTarget);$(DotNetFrameworkTarget)
full
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
new file mode 100644
index 000000000..c1c3d2cd6
--- /dev/null
+++ b/azure-pipelines.yml
@@ -0,0 +1,90 @@
+trigger:
+- main
+
+pool:
+ vmImage: 'windows-latest'
+
+variables:
+- name: BuildConfiguration
+ value: Debug
+- name: TeamName
+ value: XWT
+
+steps:
+
+#- task: MicroBuildSigningPlugin@3
+# displayName: 'Install Signing Plugin'
+# inputs:
+# signType: 'Real'
+# azureSubscription: 'MicroBuild Signing Task (DevDiv)'
+# env:
+# SYSTEM_ACCESSTOKEN: $(System.AccessToken)
+
+- task: UseDotNet@2
+ displayName: 'Install .NET 3.1'
+ inputs:
+ packageType: 'sdk'
+ version: '3.1.413'
+
+- task: UseDotNet@2
+ displayName: 'Install .NET 6'
+ inputs:
+ packageType: 'sdk'
+ version: '6.0.100'
+
+- task: DotNetCoreCLI@2
+ displayName: 'Install macos workload'
+ inputs:
+ command: 'custom'
+ custom: 'workload'
+ arguments: 'install macos'
+
+- task: DotNetCoreCLI@2
+ displayName: 'Build solution Xwt.sln'
+ inputs:
+ command: build
+ arguments: '/p:Configuration=$(BuildConfiguration)'
+
+- task: DotNetCoreCLI@2
+ displayName: 'Generate packages'
+ inputs:
+ command: custom
+ custom: pack
+ projects: Xwt.sln
+ arguments: '/p:Configuration=$(BuildConfiguration) -o:bin'
+ nobuild: true
+ workingDirectory: $(Build.SourcesDirectory)
+
+- task: Bash@3
+ displayName: 'Generate package file list'
+ inputs:
+ targetType: 'inline'
+ script: |
+ echo "" > $(build.sourcesdirectory)/bin/files.xml
+ echo " " >> $(build.sourcesdirectory)/bin/files.xml
+ find $(build.sourcesdirectory)/bin -name "*.nupkg" -exec echo " " \; >> $(build.sourcesdirectory)/bin/files.xml
+ echo " " >> $(build.sourcesdirectory)/bin/files.xml
+ echo "" >> $(build.sourcesdirectory)/bin/files.xml
+ workingDirectory: '$(build.sourcesdirectory)/bin'
+
+#- task: DotNetCoreCLI@2
+# displayName: 'Sign packages'
+# inputs:
+# command: 'custom'
+# custom: '$(MBSIGN_APPFOLDER)/ddsignfiles.dll'
+# arguments: '/filelist:$(build.sourcesdirectory)/bin/files.xml'
+
+- task: CopyFiles@1
+ displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
+ inputs:
+ SourceFolder: '$(build.sourcesdirectory)/bin'
+ Contents: '*.nupkg'
+ TargetFolder: '$(build.artifactstagingdirectory)'
+ condition: succeededOrFailed()
+
+- task: PublishBuildArtifacts@1
+ displayName: 'Publish Artifact: drop'
+ inputs:
+ PathtoPublish: '$(build.artifactstagingdirectory)'
+ condition: succeededOrFailed()
+