diff options
author | Rob Mensching <rob@firegiant.com> | 2021-03-03 12:20:47 -0800 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-03-03 12:48:50 -0800 |
commit | 9e5dc884cf215dab500a32688bd4b66644259776 (patch) | |
tree | b3744ef7ff5c2f2064779fb647ca266853cda3dd | |
parent | 9bf8e0cb421fe728e44f779cfcd777dcb2a63be1 (diff) | |
download | wix-9e5dc884cf215dab500a32688bd4b66644259776.tar.gz wix-9e5dc884cf215dab500a32688bd4b66644259776.tar.bz2 wix-9e5dc884cf215dab500a32688bd4b66644259776.zip |
Update to latest build infrastructure
-rw-r--r-- | .gitignore | 43 | ||||
-rw-r--r-- | appveyor.cmd | 7 | ||||
-rw-r--r-- | appveyor.yml | 8 | ||||
-rw-r--r-- | src/Directory.Build.props | 4 | ||||
-rw-r--r-- | src/Directory.Build.targets | 9 | ||||
-rw-r--r-- | src/Directory.csproj.props (renamed from src/CSharp.Build.props) | 0 | ||||
-rw-r--r-- | src/Directory.csproj.targets | 26 | ||||
-rw-r--r-- | src/Directory.vcxproj.props (renamed from src/Cpp.Build.props) | 7 | ||||
-rw-r--r-- | src/Directory.wixproj.props (renamed from src/Wix.Build.props) | 0 |
9 files changed, 78 insertions, 26 deletions
@@ -13,6 +13,9 @@ | |||
13 | # User-specific files (MonoDevelop/Xamarin Studio) | 13 | # User-specific files (MonoDevelop/Xamarin Studio) |
14 | *.userprefs | 14 | *.userprefs |
15 | 15 | ||
16 | # Mono auto generated files | ||
17 | mono_crash.* | ||
18 | |||
16 | # Build results | 19 | # Build results |
17 | [Dd]ebug/ | 20 | [Dd]ebug/ |
18 | [Dd]ebugPublic/ | 21 | [Dd]ebugPublic/ |
@@ -20,12 +23,14 @@ | |||
20 | [Rr]eleases/ | 23 | [Rr]eleases/ |
21 | x64/ | 24 | x64/ |
22 | x86/ | 25 | x86/ |
26 | [Ww][Ii][Nn]32/ | ||
23 | [Aa][Rr][Mm]/ | 27 | [Aa][Rr][Mm]/ |
24 | [Aa][Rr][Mm]64/ | 28 | [Aa][Rr][Mm]64/ |
25 | bld/ | 29 | bld/ |
26 | [Bb]in/ | 30 | [Bb]in/ |
27 | [Oo]bj/ | 31 | [Oo]bj/ |
28 | [Ll]og/ | 32 | [Ll]og/ |
33 | [Ll]ogs/ | ||
29 | 34 | ||
30 | # Visual Studio 2015/2017 cache/options directory | 35 | # Visual Studio 2015/2017 cache/options directory |
31 | .vs/ | 36 | .vs/ |
@@ -39,9 +44,10 @@ Generated\ Files/ | |||
39 | [Tt]est[Rr]esult*/ | 44 | [Tt]est[Rr]esult*/ |
40 | [Bb]uild[Ll]og.* | 45 | [Bb]uild[Ll]og.* |
41 | 46 | ||
42 | # NUNIT | 47 | # NUnit |
43 | *.VisualState.xml | 48 | *.VisualState.xml |
44 | TestResult.xml | 49 | TestResult.xml |
50 | nunit-*.xml | ||
45 | 51 | ||
46 | # Build Results of an ATL Project | 52 | # Build Results of an ATL Project |
47 | [Dd]ebugPS/ | 53 | [Dd]ebugPS/ |
@@ -56,6 +62,9 @@ project.lock.json | |||
56 | project.fragment.lock.json | 62 | project.fragment.lock.json |
57 | artifacts/ | 63 | artifacts/ |
58 | 64 | ||
65 | # ASP.NET Scaffolding | ||
66 | ScaffoldingReadMe.txt | ||
67 | |||
59 | # StyleCop | 68 | # StyleCop |
60 | StyleCopReport.xml | 69 | StyleCopReport.xml |
61 | 70 | ||
@@ -122,9 +131,6 @@ _ReSharper*/ | |||
122 | *.[Rr]e[Ss]harper | 131 | *.[Rr]e[Ss]harper |
123 | *.DotSettings.user | 132 | *.DotSettings.user |
124 | 133 | ||
125 | # JustCode is a .NET coding add-in | ||
126 | .JustCode | ||
127 | |||
128 | # TeamCity is a build add-in | 134 | # TeamCity is a build add-in |
129 | _TeamCity* | 135 | _TeamCity* |
130 | 136 | ||
@@ -135,6 +141,11 @@ _TeamCity* | |||
135 | .axoCover/* | 141 | .axoCover/* |
136 | !.axoCover/settings.json | 142 | !.axoCover/settings.json |
137 | 143 | ||
144 | # Coverlet is a free, cross platform Code Coverage Tool | ||
145 | coverage*.json | ||
146 | coverage*.xml | ||
147 | coverage*.info | ||
148 | |||
138 | # Visual Studio code coverage results | 149 | # Visual Studio code coverage results |
139 | *.coverage | 150 | *.coverage |
140 | *.coveragexml | 151 | *.coveragexml |
@@ -182,6 +193,8 @@ PublishScripts/ | |||
182 | 193 | ||
183 | # NuGet Packages | 194 | # NuGet Packages |
184 | *.nupkg | 195 | *.nupkg |
196 | # NuGet Symbol Packages | ||
197 | *.snupkg | ||
185 | # The packages folder can be ignored because of Package Restore | 198 | # The packages folder can be ignored because of Package Restore |
186 | **/[Pp]ackages/* | 199 | **/[Pp]ackages/* |
187 | # except build/, which is used as an MSBuild target. | 200 | # except build/, which is used as an MSBuild target. |
@@ -206,6 +219,8 @@ BundleArtifacts/ | |||
206 | Package.StoreAssociation.xml | 219 | Package.StoreAssociation.xml |
207 | _pkginfo.txt | 220 | _pkginfo.txt |
208 | *.appx | 221 | *.appx |
222 | *.appxbundle | ||
223 | *.appxupload | ||
209 | 224 | ||
210 | # Visual Studio cache files | 225 | # Visual Studio cache files |
211 | # files ending in .cache can be ignored | 226 | # files ending in .cache can be ignored |
@@ -231,8 +246,6 @@ orleans.codegen.cs | |||
231 | # Since there are multiple workflows, uncomment next line to ignore bower_components | 246 | # Since there are multiple workflows, uncomment next line to ignore bower_components |
232 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) | 247 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) |
233 | #bower_components/ | 248 | #bower_components/ |
234 | # ASP.NET Core default setup: bower directory is configured as wwwroot/lib/ and bower restore is true | ||
235 | **/wwwroot/lib/ | ||
236 | 249 | ||
237 | # RIA/Silverlight projects | 250 | # RIA/Silverlight projects |
238 | Generated_Code/ | 251 | Generated_Code/ |
@@ -257,6 +270,9 @@ ServiceFabricBackup/ | |||
257 | *.bim.layout | 270 | *.bim.layout |
258 | *.bim_*.settings | 271 | *.bim_*.settings |
259 | *.rptproj.rsuser | 272 | *.rptproj.rsuser |
273 | *- [Bb]ackup.rdl | ||
274 | *- [Bb]ackup ([0-9]).rdl | ||
275 | *- [Bb]ackup ([0-9][0-9]).rdl | ||
260 | 276 | ||
261 | # Microsoft Fakes | 277 | # Microsoft Fakes |
262 | FakesAssemblies/ | 278 | FakesAssemblies/ |
@@ -292,10 +308,6 @@ paket-files/ | |||
292 | # FAKE - F# Make | 308 | # FAKE - F# Make |
293 | .fake/ | 309 | .fake/ |
294 | 310 | ||
295 | # JetBrains Rider | ||
296 | .idea/ | ||
297 | *.sln.iml | ||
298 | |||
299 | # CodeRush personal settings | 311 | # CodeRush personal settings |
300 | .cr/personal | 312 | .cr/personal |
301 | 313 | ||
@@ -337,5 +349,14 @@ ASALocalRun/ | |||
337 | # Local History for Visual Studio | 349 | # Local History for Visual Studio |
338 | .localhistory/ | 350 | .localhistory/ |
339 | 351 | ||
340 | # BeatPulse healthcheck temp database | 352 | # BeatPulse healthcheck temp database |
341 | healthchecksdb | 353 | healthchecksdb |
354 | |||
355 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 | ||
356 | MigrationBackup/ | ||
357 | |||
358 | # Ionide (cross platform F# VS Code tools) working folder | ||
359 | .ionide/ | ||
360 | |||
361 | # Fody - auto-generated XML schema | ||
362 | FodyWeavers.xsd | ||
diff --git a/appveyor.cmd b/appveyor.cmd index f12f3903..23058ece 100644 --- a/appveyor.cmd +++ b/appveyor.cmd | |||
@@ -3,11 +3,15 @@ | |||
3 | @set _C=Release | 3 | @set _C=Release |
4 | @set _P=%~dp0build\%_C%\publish | 4 | @set _P=%~dp0build\%_C%\publish |
5 | @set _RCO=/S /R:1 /W:1 /NP /XO /NS /NC /NFL /NDL /NJH /NJS | 5 | @set _RCO=/S /R:1 /W:1 /NP /XO /NS /NC /NFL /NDL /NJH /NJS |
6 | @if /i "%1"=="debug" set _C=Debug | ||
6 | 7 | ||
8 | :: Restore | ||
7 | nuget restore || exit /b | 9 | nuget restore || exit /b |
8 | 10 | ||
9 | dotnet test -c %_C% src\test\WixToolsetTest.BuildTasks || exit /b | 11 | :: Build |
12 | msbuild -p:Configuration=%_C% || exit /b | ||
10 | 13 | ||
14 | :: Test | ||
11 | dotnet publish -c %_C% -o %_P%\dotnet-wix\ -f netcoreapp2.1 src\wix || exit /b | 15 | dotnet publish -c %_C% -o %_P%\dotnet-wix\ -f netcoreapp2.1 src\wix || exit /b |
12 | 16 | ||
13 | dotnet publish -c %_C% -o %_P%\WixToolset.Sdk\separate\net461\x86\buildtasks\ -f net461 -r win-x86 src\WixToolset.BuildTasks || exit /b | 17 | dotnet publish -c %_C% -o %_P%\WixToolset.Sdk\separate\net461\x86\buildtasks\ -f net461 -r win-x86 src\WixToolset.BuildTasks || exit /b |
@@ -36,6 +40,7 @@ dotnet publish -c %_C% -o %_P%\WixToolset.Sdk\broken\net461\ -f net461 -r dne sr | |||
36 | 40 | ||
37 | dotnet test -c %_C% src\test\WixToolsetTest.Sdk || exit /b | 41 | dotnet test -c %_C% src\test\WixToolsetTest.Sdk || exit /b |
38 | 42 | ||
43 | :: Pack | ||
39 | dotnet pack -c %_C% src\dotnet-wix || exit /b | 44 | dotnet pack -c %_C% src\dotnet-wix || exit /b |
40 | dotnet pack -c %_C% src\WixToolset.Sdk || exit /b | 45 | dotnet pack -c %_C% src\WixToolset.Sdk || exit /b |
41 | 46 | ||
diff --git a/appveyor.yml b/appveyor.yml index 01f87f46..43014705 100644 --- a/appveyor.yml +++ b/appveyor.yml | |||
@@ -30,13 +30,13 @@ nuget: | |||
30 | skip_branch_with_pr: true | 30 | skip_branch_with_pr: true |
31 | skip_tags: true | 31 | skip_tags: true |
32 | 32 | ||
33 | test: off | ||
34 | |||
35 | artifacts: | 33 | artifacts: |
36 | - path: build\Release\**\*.nupkg | ||
37 | name: nuget | ||
38 | - path: build\Release\**\*.msi | 34 | - path: build\Release\**\*.msi |
39 | name: msi | 35 | name: msi |
36 | - path: build\Release\**\*.nupkg | ||
37 | name: nuget | ||
38 | - path: build\Release\**\*.snupkg | ||
39 | name: snupkg | ||
40 | 40 | ||
41 | notifications: | 41 | notifications: |
42 | - provider: Slack | 42 | - provider: Slack |
diff --git a/src/Directory.Build.props b/src/Directory.Build.props index f83cc154..b3c6287c 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props | |||
@@ -22,8 +22,6 @@ | |||
22 | <Product>WiX Toolset</Product> | 22 | <Product>WiX Toolset</Product> |
23 | </PropertyGroup> | 23 | </PropertyGroup> |
24 | 24 | ||
25 | <Import Project="CSharp.Build.props" Condition=" '$(MSBuildProjectExtension)'=='.csproj' and Exists('CSharp.Build.props') " /> | 25 | <Import Project="Directory$(MSBuildProjectExtension).props" Condition=" Exists('Directory$(MSBuildProjectExtension).props') " /> |
26 | <Import Project="Cpp.Build.props" Condition=" Exists('Cpp.Build.props') And '$(MSBuildProjectExtension)'=='.vcxproj' " /> | ||
27 | <Import Project="Wix.Build.props" Condition=" Exists('Wix.Build.props') And '$(MSBuildProjectExtension)'=='.wixproj' " /> | ||
28 | <Import Project="Custom.Build.props" Condition=" Exists('Custom.Build.props') " /> | 26 | <Import Project="Custom.Build.props" Condition=" Exists('Custom.Build.props') " /> |
29 | </Project> | 27 | </Project> |
diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index cb988931..2fcc765a 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets | |||
@@ -10,11 +10,6 @@ | |||
10 | --> | 10 | --> |
11 | <Project> | 11 | <Project> |
12 | <PropertyGroup> | 12 | <PropertyGroup> |
13 | <CreateDocumentation Condition=" '$(CreateDocumentationFile)'!='true' ">false</CreateDocumentation> | ||
14 | <DocumentationFile Condition=" '$(CreateDocumentationFile)'=='true' ">$(OutputPath)\$(AssemblyName).xml</DocumentationFile> | ||
15 | </PropertyGroup> | ||
16 | |||
17 | <PropertyGroup> | ||
18 | <ReplacePackageReferences>true</ReplacePackageReferences> | 13 | <ReplacePackageReferences>true</ReplacePackageReferences> |
19 | <TheSolutionPath Condition=" '$(NCrunch)'=='' ">$(SolutionPath)</TheSolutionPath> | 14 | <TheSolutionPath Condition=" '$(NCrunch)'=='' ">$(SolutionPath)</TheSolutionPath> |
20 | <TheSolutionPath Condition=" '$(NCrunch)'=='1' ">$(NCrunchOriginalSolutionPath)</TheSolutionPath> | 15 | <TheSolutionPath Condition=" '$(NCrunch)'=='1' ">$(NCrunchOriginalSolutionPath)</TheSolutionPath> |
@@ -45,12 +40,12 @@ | |||
45 | <ProjectReference Include="@(PackageInSolution->'$(SmartSolutionDir)\%(SmartPath)' )"/> | 40 | <ProjectReference Include="@(PackageInSolution->'$(SmartSolutionDir)\%(SmartPath)' )"/> |
46 | 41 | ||
47 | <!-- Remove the package references that are now referenced as projects --> | 42 | <!-- Remove the package references that are now referenced as projects --> |
48 | <PackageReference Remove="@(PackageInSolution->'%(PackageName)' )"/> | 43 | <PackageReference Remove="@(PackageInSolution->'%(PackageName)')"/> |
49 | </ItemGroup> | 44 | </ItemGroup> |
50 | 45 | ||
51 | </When> | 46 | </When> |
52 | </Choose> | 47 | </Choose> |
53 | 48 | ||
54 | <Import Project="Wix.Build.targets" Condition=" Exists('Wix.Build.targets') And '$(MSBuildProjectExtension)'=='.wixproj' " /> | 49 | <Import Project="Directory$(MSBuildProjectExtension).targets" Condition=" Exists('Directory$(MSBuildProjectExtension).targets') " /> |
55 | <Import Project="Custom.Build.targets" Condition=" Exists('Custom.Build.targets') " /> | 50 | <Import Project="Custom.Build.targets" Condition=" Exists('Custom.Build.targets') " /> |
56 | </Project> | 51 | </Project> |
diff --git a/src/CSharp.Build.props b/src/Directory.csproj.props index 81d24ad1..81d24ad1 100644 --- a/src/CSharp.Build.props +++ b/src/Directory.csproj.props | |||
diff --git a/src/Directory.csproj.targets b/src/Directory.csproj.targets new file mode 100644 index 00000000..c3270426 --- /dev/null +++ b/src/Directory.csproj.targets | |||
@@ -0,0 +1,26 @@ | |||
1 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
2 | <!-- | ||
3 | Do NOT modify this file. Update the canonical version in Home\repo-template\src\Directory.csproj.targets | ||
4 | then update all of the repos. | ||
5 | --> | ||
6 | <Project> | ||
7 | <PropertyGroup> | ||
8 | <CreateDocumentation Condition=" '$(CreateDocumentationFile)'!='true' ">false</CreateDocumentation> | ||
9 | <DocumentationFile Condition=" '$(CreateDocumentationFile)'=='true' ">$(OutputPath)\$(AssemblyName).xml</DocumentationFile> | ||
10 | </PropertyGroup> | ||
11 | |||
12 | <Target Name="SetNuspecProperties" DependsOnTargets="InitializeSourceControlInformation" AfterTargets="GetBuildVersion" | ||
13 | Condition=" Exists('$(MSBuildProjectName).nuspec') "> | ||
14 | <PropertyGroup> | ||
15 | <ProjectUrl Condition=" '$(ProjectUrl)'=='' and '$(PrivateRepositoryUrl)'!='' ">$(PrivateRepositoryUrl.Replace('.git',''))</ProjectUrl> | ||
16 | |||
17 | <NuspecFile>$(MSBuildProjectName).nuspec</NuspecFile> | ||
18 | <NuspecBasePath Condition=" '$(NuspecBasePath)'=='' ">$(OutputPath)..\</NuspecBasePath> | ||
19 | <NuspecProperties>$(NuspecProperties);Id=$(PackageId);Authors=$(Authors);Copyright=$(Copyright);Description=$(Description);Title=$(Title)</NuspecProperties> | ||
20 | <NuspecProperties>$(NuspecProperties);Version=$(PackageVersion);RepositoryCommit=$(SourceRevisionId);RepositoryType=$(RepositoryType);RepositoryUrl=$(PrivateRepositoryUrl);ProjectFolder=$(MSBuildProjectDirectory)\;ProjectUrl=$(ProjectUrl)</NuspecProperties> | ||
21 | <PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
22 | <SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
23 | </PropertyGroup> | ||
24 | </Target> | ||
25 | |||
26 | </Project> | ||
diff --git a/src/Cpp.Build.props b/src/Directory.vcxproj.props index 44a042c7..bcf26c57 100644 --- a/src/Cpp.Build.props +++ b/src/Directory.vcxproj.props | |||
@@ -6,6 +6,13 @@ | |||
6 | <Platform Condition=" '$(Platform)' == '' OR '$(Platform)' == 'AnyCPU' ">Win32</Platform> | 6 | <Platform Condition=" '$(Platform)' == '' OR '$(Platform)' == 'AnyCPU' ">Win32</Platform> |
7 | <IntDir>$(BaseIntermediateOutputPath)$(Configuration)\$(Platform)\</IntDir> | 7 | <IntDir>$(BaseIntermediateOutputPath)$(Configuration)\$(Platform)\</IntDir> |
8 | <OutDir>$(OutputPath)$(Platform)\</OutDir> | 8 | <OutDir>$(OutputPath)$(Platform)\</OutDir> |
9 | |||
10 | <!-- NBGV properties --> | ||
11 | <AssemblyCompany>$(Company)</AssemblyCompany> | ||
12 | <AssemblyCopyright>$(Copyright)</AssemblyCopyright> | ||
13 | |||
14 | <RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers> | ||
15 | <NuGetTargetMoniker>native,Version=v0.0</NuGetTargetMoniker> | ||
9 | </PropertyGroup> | 16 | </PropertyGroup> |
10 | 17 | ||
11 | <PropertyGroup Condition="'$(WindowsTargetPlatformVersion)'=='' AND '$(VisualStudioVersion)'>='15.0'"> | 18 | <PropertyGroup Condition="'$(WindowsTargetPlatformVersion)'=='' AND '$(VisualStudioVersion)'>='15.0'"> |
diff --git a/src/Wix.Build.props b/src/Directory.wixproj.props index a0aaa658..a0aaa658 100644 --- a/src/Wix.Build.props +++ b/src/Directory.wixproj.props | |||