diff options
author | Rob Mensching <rob@firegiant.com> | 2021-03-01 14:57:38 -0800 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-03-01 15:14:44 -0800 |
commit | d15c04e29d7ac167e382efe37365b8fa451728de (patch) | |
tree | 0680621cc1b167a7cad23dc774e305372488d471 | |
parent | bfdf787bc4a6b795eb1f78b69ec9b79df2d2a203 (diff) | |
download | wix-d15c04e29d7ac167e382efe37365b8fa451728de.tar.gz wix-d15c04e29d7ac167e382efe37365b8fa451728de.tar.bz2 wix-d15c04e29d7ac167e382efe37365b8fa451728de.zip |
Update to latest build infrastructure
-rw-r--r-- | .gitignore | 43 | ||||
-rw-r--r-- | VisualStudio.wixext.sln | 4 | ||||
-rw-r--r-- | appveyor.cmd | 17 | ||||
-rw-r--r-- | appveyor.yml | 2 | ||||
-rw-r--r-- | global.json | 2 | ||||
-rw-r--r-- | src/Directory.Build.props | 4 | ||||
-rw-r--r-- | src/Directory.Build.targets | 5 | ||||
-rw-r--r-- | src/Directory.csproj.props | 13 | ||||
-rw-r--r-- | src/Directory.csproj.targets | 26 | ||||
-rw-r--r-- | src/Directory.vcxproj.props | 111 | ||||
-rw-r--r-- | src/ca/packages.config | 6 | ||||
-rw-r--r-- | src/ca/vsca.vcxproj | 34 | ||||
-rw-r--r-- | src/test/WixToolsetTest.VisualStudio/WixToolsetTest.VisualStudio.csproj | 5 | ||||
-rw-r--r-- | src/wixext/WixToolset.VisualStudio.wixext.csproj | 11 | ||||
-rw-r--r-- | src/wixext/WixToolset.VisualStudio.wixext.nuspec | 23 | ||||
-rw-r--r-- | src/wixlib/vs.wixproj | 6 |
16 files changed, 254 insertions, 58 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/VisualStudio.wixext.sln b/VisualStudio.wixext.sln index b00eea9e..9d6a8356 100644 --- a/VisualStudio.wixext.sln +++ b/VisualStudio.wixext.sln | |||
@@ -5,10 +5,10 @@ VisualStudioVersion = 16.0.30611.23 | |||
5 | MinimumVisualStudioVersion = 15.0.26124.0 | 5 | MinimumVisualStudioVersion = 15.0.26124.0 |
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vsca", "src\ca\vsca.vcxproj", "{45308B85-0628-4978-8FC8-6AD9E1AD5949}" | 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vsca", "src\ca\vsca.vcxproj", "{45308B85-0628-4978-8FC8-6AD9E1AD5949}" |
7 | EndProject | 7 | EndProject |
8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WixToolset.VisualStudio.wixext", "src\wixext\WixToolset.VisualStudio.wixext.csproj", "{61BFD377-9DE1-48B4-8687-560DF68D6F3B}" | ||
9 | EndProject | ||
10 | Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "vs", "src\wixlib\vs.wixproj", "{14345C9D-8AF8-435A-BB1B-E067CE7EB321}" | 8 | Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "vs", "src\wixlib\vs.wixproj", "{14345C9D-8AF8-435A-BB1B-E067CE7EB321}" |
11 | EndProject | 9 | EndProject |
10 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WixToolset.VisualStudio.wixext", "src\wixext\WixToolset.VisualStudio.wixext.csproj", "{61BFD377-9DE1-48B4-8687-560DF68D6F3B}" | ||
11 | EndProject | ||
12 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WixToolsetTest.VisualStudio", "src\test\WixToolsetTest.VisualStudio\WixToolsetTest.VisualStudio.csproj", "{DD2BD0F7-1E4A-4D11-954C-3505323C4E1B}" | 12 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WixToolsetTest.VisualStudio", "src\test\WixToolsetTest.VisualStudio\WixToolsetTest.VisualStudio.csproj", "{DD2BD0F7-1E4A-4D11-954C-3505323C4E1B}" |
13 | EndProject | 13 | EndProject |
14 | Global | 14 | Global |
diff --git a/appveyor.cmd b/appveyor.cmd index 84e1d13b..847809c3 100644 --- a/appveyor.cmd +++ b/appveyor.cmd | |||
@@ -1,14 +1,19 @@ | |||
1 | @setlocal | 1 | @setlocal |
2 | @pushd %~dp0 | 2 | @pushd %~dp0 |
3 | @set _C=Release | ||
4 | @if /i "%1"=="debug" set _C=Debug | ||
3 | 5 | ||
4 | nuget restore || exit /b | 6 | :: Restore |
7 | msbuild -p:Configuration=%_C% -t:Restore || exit /b | ||
5 | 8 | ||
6 | msbuild -p:Configuration=Release -t:Restore || exit /b | 9 | :: Build |
10 | msbuild -p:Configuration=%_C% src\test\WixToolsetTest.VisualStudio\WixToolsetTest.VisualStudio.csproj || exit /b | ||
7 | 11 | ||
8 | msbuild -p:Configuration=Release src\test\WixToolsetTest.VisualStudio\WixToolsetTest.VisualStudio.csproj || exit /b | 12 | :: Test |
9 | dotnet test -c Release --no-build src\test\WixToolsetTest.VisualStudio || exit /b | 13 | dotnet test -c %_C% --no-build src\test\WixToolsetTest.VisualStudio || exit /b |
10 | 14 | ||
11 | msbuild -p:Configuration=Release -t:Pack src\wixext\WixToolset.VisualStudio.wixext.csproj || exit /b | 15 | :: Pack |
16 | msbuild -p:Configuration=%_C% -p:NoBuild=true -t:Pack src\wixext\WixToolset.VisualStudio.wixext.csproj || exit /b | ||
12 | 17 | ||
13 | @popd | 18 | @popd |
14 | @endlocal \ No newline at end of file | 19 | @endlocal |
diff --git a/appveyor.yml b/appveyor.yml index 7c686b04..c53cc9cc 100644 --- a/appveyor.yml +++ b/appveyor.yml | |||
@@ -33,6 +33,8 @@ skip_tags: true | |||
33 | artifacts: | 33 | artifacts: |
34 | - path: build\Release\**\*.nupkg | 34 | - path: build\Release\**\*.nupkg |
35 | name: nuget | 35 | name: nuget |
36 | - path: build\Release\**\*.snupkg | ||
37 | name: snupkg | ||
36 | 38 | ||
37 | notifications: | 39 | notifications: |
38 | - provider: Slack | 40 | - provider: Slack |
diff --git a/global.json b/global.json index 10345833..e101f0d5 100644 --- a/global.json +++ b/global.json | |||
@@ -1,5 +1,5 @@ | |||
1 | { | 1 | { |
2 | "msbuild-sdks": { | 2 | "msbuild-sdks": { |
3 | "WixToolset.Sdk": "4.0.0-build-0163" | 3 | "WixToolset.Sdk": "4.0.0-build-0192" |
4 | } | 4 | } |
5 | } | 5 | } |
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 dac7452a..2fcc765a 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets | |||
@@ -40,9 +40,12 @@ | |||
40 | <ProjectReference Include="@(PackageInSolution->'$(SmartSolutionDir)\%(SmartPath)' )"/> | 40 | <ProjectReference Include="@(PackageInSolution->'$(SmartSolutionDir)\%(SmartPath)' )"/> |
41 | 41 | ||
42 | <!-- Remove the package references that are now referenced as projects --> | 42 | <!-- Remove the package references that are now referenced as projects --> |
43 | <PackageReference Remove="@(PackageInSolution->'%(PackageName)' )"/> | 43 | <PackageReference Remove="@(PackageInSolution->'%(PackageName)')"/> |
44 | </ItemGroup> | 44 | </ItemGroup> |
45 | 45 | ||
46 | </When> | 46 | </When> |
47 | </Choose> | 47 | </Choose> |
48 | |||
49 | <Import Project="Directory$(MSBuildProjectExtension).targets" Condition=" Exists('Directory$(MSBuildProjectExtension).targets') " /> | ||
50 | <Import Project="Custom.Build.targets" Condition=" Exists('Custom.Build.targets') " /> | ||
48 | </Project> | 51 | </Project> |
diff --git a/src/Directory.csproj.props b/src/Directory.csproj.props new file mode 100644 index 00000000..81d24ad1 --- /dev/null +++ b/src/Directory.csproj.props | |||
@@ -0,0 +1,13 @@ | |||
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\CSharp.Build.props | ||
4 | then update all of the repos. | ||
5 | --> | ||
6 | <Project> | ||
7 | <PropertyGroup> | ||
8 | <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> | ||
9 | <SignAssembly>true</SignAssembly> | ||
10 | <AssemblyOriginatorKeyFile>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)wix.snk))</AssemblyOriginatorKeyFile> | ||
11 | <NBGV_EmitThisAssemblyClass>false</NBGV_EmitThisAssemblyClass> | ||
12 | </PropertyGroup> | ||
13 | </Project> | ||
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/Directory.vcxproj.props b/src/Directory.vcxproj.props new file mode 100644 index 00000000..bcf26c57 --- /dev/null +++ b/src/Directory.vcxproj.props | |||
@@ -0,0 +1,111 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <!-- 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. --> | ||
3 | |||
4 | <Project> | ||
5 | <PropertyGroup> | ||
6 | <Platform Condition=" '$(Platform)' == '' OR '$(Platform)' == 'AnyCPU' ">Win32</Platform> | ||
7 | <IntDir>$(BaseIntermediateOutputPath)$(Configuration)\$(Platform)\</IntDir> | ||
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> | ||
16 | </PropertyGroup> | ||
17 | |||
18 | <PropertyGroup Condition="'$(WindowsTargetPlatformVersion)'=='' AND '$(VisualStudioVersion)'>='15.0'"> | ||
19 | <WindowsTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion> | ||
20 | </PropertyGroup> | ||
21 | |||
22 | <ItemDefinitionGroup> | ||
23 | <ClCompile> | ||
24 | <DisableSpecificWarnings>$(DisableSpecificCompilerWarnings)</DisableSpecificWarnings> | ||
25 | <WarningLevel>Level4</WarningLevel> | ||
26 | <AdditionalIncludeDirectories>$(ProjectDir)inc;$(MSBuildProjectDirectory);$(IntDir);$(SqlCESdkIncludePath);$(ProjectAdditionalIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
27 | <PreprocessorDefinitions>WIN32;_WINDOWS;_WIN32_MSI=500;_WIN32_WINNT=0x0501;$(ArmPreprocessorDefinitions);$(UnicodePreprocessorDefinitions);_CRT_STDIO_LEGACY_WIDE_SPECIFIERS;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
28 | <PrecompiledHeader>Use</PrecompiledHeader> | ||
29 | <PrecompiledHeaderFile>precomp.h</PrecompiledHeaderFile> | ||
30 | <CallingConvention Condition="'$(Platform)'=='Win32'">StdCall</CallingConvention> | ||
31 | <TreatWarningAsError>true</TreatWarningAsError> | ||
32 | <ExceptionHandling>false</ExceptionHandling> | ||
33 | <AdditionalOptions>-YlprecompDefine</AdditionalOptions> | ||
34 | <AdditionalOptions Condition=" $(PlatformToolset.StartsWith('v14')) ">/Zc:threadSafeInit- %(AdditionalOptions)</AdditionalOptions> | ||
35 | <MultiProcessorCompilation Condition=" $(NUMBER_OF_PROCESSORS) > 4 ">true</MultiProcessorCompilation> | ||
36 | </ClCompile> | ||
37 | <ResourceCompile> | ||
38 | <PreprocessorDefinitions>$(ArmPreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
39 | <AdditionalIncludeDirectories>$(ProjectAdditionalResourceIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
40 | </ResourceCompile> | ||
41 | <Lib> | ||
42 | <AdditionalLibraryDirectories>$(OutDir);$(AdditionalMultiTargetLibraryPath);$(ProjectAdditionalLibraryDirectories);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
43 | </Lib> | ||
44 | <Link> | ||
45 | <SubSystem>$(ProjectSubSystem)</SubSystem> | ||
46 | <ModuleDefinitionFile>$(ProjectModuleDefinitionFile)</ModuleDefinitionFile> | ||
47 | <NoEntryPoint>$(ResourceOnlyDll)</NoEntryPoint> | ||
48 | <GenerateDebugInformation>true</GenerateDebugInformation> | ||
49 | <AdditionalDependencies>$(ProjectAdditionalLinkLibraries);advapi32.lib;comdlg32.lib;user32.lib;oleaut32.lib;gdi32.lib;shell32.lib;ole32.lib;version.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||
50 | <AdditionalLibraryDirectories>$(OutDir);$(AdditionalMultiTargetLibraryPath);$(ArmLibraryDirectories);$(ProjectAdditionalLinkLibraryDirectories);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
51 | <AdditionalOptions Condition=" $(PlatformToolset.StartsWith('v14')) ">/IGNORE:4099 %(AdditionalOptions)</AdditionalOptions> | ||
52 | </Link> | ||
53 | </ItemDefinitionGroup> | ||
54 | |||
55 | <ItemDefinitionGroup Condition=" '$(Platform)'=='Win32' and '$(PlatformToolset)'!='v100'"> | ||
56 | <ClCompile> | ||
57 | <EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet> | ||
58 | </ClCompile> | ||
59 | </ItemDefinitionGroup> | ||
60 | <ItemDefinitionGroup Condition=" '$(Platform)'=='arm' "> | ||
61 | <ClCompile> | ||
62 | <CallingConvention>CDecl</CallingConvention> | ||
63 | </ClCompile> | ||
64 | </ItemDefinitionGroup> | ||
65 | <ItemDefinitionGroup Condition=" '$(ConfigurationType)'=='StaticLibrary' "> | ||
66 | <ClCompile> | ||
67 | <DebugInformationFormat>OldStyle</DebugInformationFormat> | ||
68 | <OmitDefaultLibName>true</OmitDefaultLibName> | ||
69 | <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries> | ||
70 | </ClCompile> | ||
71 | </ItemDefinitionGroup> | ||
72 | <ItemDefinitionGroup Condition=" '$(Configuration)'=='Debug' "> | ||
73 | <ClCompile> | ||
74 | <Optimization>Disabled</Optimization> | ||
75 | <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||
76 | <PreprocessorDefinitions>_DEBUG;DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
77 | <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | ||
78 | </ClCompile> | ||
79 | </ItemDefinitionGroup> | ||
80 | <ItemDefinitionGroup Condition=" '$(Configuration)'=='Debug' and '$(CLRSupport)'=='true' "> | ||
81 | <ClCompile> | ||
82 | <BasicRuntimeChecks></BasicRuntimeChecks> | ||
83 | <RuntimeLibrary>MultiThreadedDebugDll</RuntimeLibrary> | ||
84 | </ClCompile> | ||
85 | </ItemDefinitionGroup> | ||
86 | <ItemDefinitionGroup Condition=" '$(Configuration)'=='Release' "> | ||
87 | <ClCompile> | ||
88 | <Optimization>MinSpace</Optimization> | ||
89 | <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
90 | <FunctionLevelLinking>true</FunctionLevelLinking> | ||
91 | <IntrinsicFunctions>true</IntrinsicFunctions> | ||
92 | <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||
93 | </ClCompile> | ||
94 | <Link> | ||
95 | <EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
96 | <OptimizeReferences>true</OptimizeReferences> | ||
97 | </Link> | ||
98 | </ItemDefinitionGroup> | ||
99 | <ItemDefinitionGroup Condition=" '$(Configuration)'=='Release' and '$(CLRSupport)'=='true' "> | ||
100 | <ClCompile> | ||
101 | <BasicRuntimeChecks></BasicRuntimeChecks> | ||
102 | <RuntimeLibrary>MultiThreadedDll</RuntimeLibrary> | ||
103 | </ClCompile> | ||
104 | </ItemDefinitionGroup> | ||
105 | <ItemDefinitionGroup Condition=" '$(CLRSupport)'=='true' "> | ||
106 | <Link> | ||
107 | <KeyFile>$(LinkKeyFile)</KeyFile> | ||
108 | <DelaySign>$(LinkDelaySign)</DelaySign> | ||
109 | </Link> | ||
110 | </ItemDefinitionGroup> | ||
111 | </Project> | ||
diff --git a/src/ca/packages.config b/src/ca/packages.config deleted file mode 100644 index d70a26fe..00000000 --- a/src/ca/packages.config +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <packages> | ||
3 | <package id="Microsoft.VisualStudio.Setup.Configuration.Native" version="1.14.114" targetFramework="native" developmentDependency="true" /> | ||
4 | <package id="WixToolset.DUtil" version="4.0.30" targetFramework="native" /> | ||
5 | <package id="WixToolset.WcaUtil" version="4.0.16" targetFramework="native" /> | ||
6 | </packages> \ No newline at end of file | ||
diff --git a/src/ca/vsca.vcxproj b/src/ca/vsca.vcxproj index e37e94fc..80ff9ff1 100644 --- a/src/ca/vsca.vcxproj +++ b/src/ca/vsca.vcxproj | |||
@@ -1,8 +1,7 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <!-- 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 | <!-- 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. --> |
3 | |||
3 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | 4 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
4 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props')" /> | ||
5 | <Import Project="..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props" Condition="Exists('..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props')" /> | ||
6 | <ItemGroup Label="ProjectConfigurations"> | 5 | <ItemGroup Label="ProjectConfigurations"> |
7 | <ProjectConfiguration Include="Debug|Win32"> | 6 | <ProjectConfiguration Include="Debug|Win32"> |
8 | <Configuration>Debug</Configuration> | 7 | <Configuration>Debug</Configuration> |
@@ -13,6 +12,7 @@ | |||
13 | <Platform>Win32</Platform> | 12 | <Platform>Win32</Platform> |
14 | </ProjectConfiguration> | 13 | </ProjectConfiguration> |
15 | </ItemGroup> | 14 | </ItemGroup> |
15 | |||
16 | <PropertyGroup Label="Globals"> | 16 | <PropertyGroup Label="Globals"> |
17 | <ProjectGuid>{45308B85-0628-4978-8FC8-6AD9E1AD5949}</ProjectGuid> | 17 | <ProjectGuid>{45308B85-0628-4978-8FC8-6AD9E1AD5949}</ProjectGuid> |
18 | <ConfigurationType>DynamicLibrary</ConfigurationType> | 18 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
@@ -23,36 +23,36 @@ | |||
23 | <Description>WiX Toolset VS CustomAction</Description> | 23 | <Description>WiX Toolset VS CustomAction</Description> |
24 | <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> | 24 | <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> |
25 | </PropertyGroup> | 25 | </PropertyGroup> |
26 | |||
26 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | 27 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
27 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | 28 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
28 | <ImportGroup Label="ExtensionSettings"> | 29 | |
29 | </ImportGroup> | ||
30 | <ImportGroup Label="Shared"> | ||
31 | <Import Project="..\..\packages\Microsoft.VisualStudio.Setup.Configuration.Native.1.14.114\build\native\Microsoft.VisualStudio.Setup.Configuration.Native.targets" Condition="Exists('..\..\packages\Microsoft.VisualStudio.Setup.Configuration.Native.1.14.114\build\native\Microsoft.VisualStudio.Setup.Configuration.Native.targets')" /> | ||
32 | </ImportGroup> | ||
33 | <PropertyGroup> | 30 | <PropertyGroup> |
34 | <ProjectAdditionalLinkLibraries>msi.lib</ProjectAdditionalLinkLibraries> | 31 | <ProjectAdditionalLinkLibraries>msi.lib</ProjectAdditionalLinkLibraries> |
35 | </PropertyGroup> | 32 | </PropertyGroup> |
33 | |||
36 | <ItemGroup> | 34 | <ItemGroup> |
37 | <ClCompile Include="dllmain.cpp"> | 35 | <ClCompile Include="dllmain.cpp"> |
38 | <PrecompiledHeader>Create</PrecompiledHeader> | 36 | <PrecompiledHeader>Create</PrecompiledHeader> |
39 | </ClCompile> | 37 | </ClCompile> |
40 | <ClCompile Include="vsca.cpp" /> | 38 | <ClCompile Include="vsca.cpp" /> |
41 | </ItemGroup> | 39 | </ItemGroup> |
40 | |||
42 | <ItemGroup> | 41 | <ItemGroup> |
43 | <ClInclude Include="precomp.h" /> | 42 | <ClInclude Include="precomp.h" /> |
44 | </ItemGroup> | 43 | </ItemGroup> |
44 | |||
45 | <ItemGroup> | 45 | <ItemGroup> |
46 | <None Include="packages.config" /> | ||
47 | <None Include="vsca.def" /> | 46 | <None Include="vsca.def" /> |
48 | </ItemGroup> | 47 | </ItemGroup> |
48 | |||
49 | <ItemGroup> | ||
50 | <PackageReference Include="Microsoft.VisualStudio.Setup.Configuration.Native" Version="1.14.114" /> | ||
51 | <PackageReference Include="WixToolset.Dutil" Version="4.0.62" /> | ||
52 | <PackageReference Include="WixToolset.WcaUtil" Version="4.0.18" /> | ||
53 | <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" /> | ||
54 | <PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" /> | ||
55 | </ItemGroup> | ||
56 | |||
49 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 57 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
50 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | 58 | </Project> |
51 | <PropertyGroup> | ||
52 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | ||
53 | </PropertyGroup> | ||
54 | <Error Condition="!Exists('..\..\packages\Microsoft.VisualStudio.Setup.Configuration.Native.1.14.114\build\native\Microsoft.VisualStudio.Setup.Configuration.Native.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.VisualStudio.Setup.Configuration.Native.1.14.114\build\native\Microsoft.VisualStudio.Setup.Configuration.Native.targets'))" /> | ||
55 | <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props'))" /> | ||
56 | <Error Condition="!Exists('..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props'))" /> | ||
57 | </Target> | ||
58 | </Project> \ No newline at end of file | ||
diff --git a/src/test/WixToolsetTest.VisualStudio/WixToolsetTest.VisualStudio.csproj b/src/test/WixToolsetTest.VisualStudio/WixToolsetTest.VisualStudio.csproj index 6bb325c6..9172569f 100644 --- a/src/test/WixToolsetTest.VisualStudio/WixToolsetTest.VisualStudio.csproj +++ b/src/test/WixToolsetTest.VisualStudio/WixToolsetTest.VisualStudio.csproj | |||
@@ -12,10 +12,7 @@ | |||
12 | </PropertyGroup> | 12 | </PropertyGroup> |
13 | 13 | ||
14 | <ItemGroup> | 14 | <ItemGroup> |
15 | <Content Include="TestData\UsingVsixPackage\example.txt" CopyToOutputDirectory="PreserveNewest" /> | 15 | <Content Include="TestData\**" CopyToOutputDirectory="PreserveNewest" /> |
16 | <Content Include="TestData\UsingVsixPackage\Package.en-us.wxl" CopyToOutputDirectory="PreserveNewest" /> | ||
17 | <Content Include="TestData\UsingVsixPackage\Package.wxs" CopyToOutputDirectory="PreserveNewest" /> | ||
18 | <Content Include="TestData\UsingVsixPackage\PackageComponents.wxs" CopyToOutputDirectory="PreserveNewest" /> | ||
19 | </ItemGroup> | 16 | </ItemGroup> |
20 | 17 | ||
21 | <ItemGroup> | 18 | <ItemGroup> |
diff --git a/src/wixext/WixToolset.VisualStudio.wixext.csproj b/src/wixext/WixToolset.VisualStudio.wixext.csproj index bb7bba6b..82aa0d1d 100644 --- a/src/wixext/WixToolset.VisualStudio.wixext.csproj +++ b/src/wixext/WixToolset.VisualStudio.wixext.csproj | |||
@@ -8,23 +8,24 @@ | |||
8 | <Description>WiX Toolset Visual Studio Extension</Description> | 8 | <Description>WiX Toolset Visual Studio Extension</Description> |
9 | <Title>WiX Toolset VS Extension</Title> | 9 | <Title>WiX Toolset VS Extension</Title> |
10 | <IsTool>true</IsTool> | 10 | <IsTool>true</IsTool> |
11 | <ContentTargetFolders>build</ContentTargetFolders> | 11 | <IncludeSymbols>true</IncludeSymbols> |
12 | </PropertyGroup> | 12 | </PropertyGroup> |
13 | 13 | ||
14 | <ItemGroup> | 14 | <ItemGroup> |
15 | <Content Include="$(MSBuildThisFileName).targets" /> | ||
16 | <EmbeddedResource Include="$(OutputPath)..\vs.wixlib" /> | 15 | <EmbeddedResource Include="$(OutputPath)..\vs.wixlib" /> |
17 | </ItemGroup> | 16 | </ItemGroup> |
18 | 17 | ||
19 | <ItemGroup> | 18 | <ItemGroup> |
20 | <PackageReference Include="WixToolset.Extensibility" Version="4.0.*" PrivateAssets="all" /> | 19 | <ProjectReference Include="..\wixlib\vs.wixproj" ReferenceOutputAssembly="false" Condition=" '$(NCrunch)'=='' " /> |
21 | </ItemGroup> | 20 | </ItemGroup> |
22 | 21 | ||
23 | <ItemGroup> | 22 | <ItemGroup> |
24 | <ProjectReference Include="..\wixlib\vs.wixproj" ReferenceOutputAssembly="false" Condition=" '$(NCrunch)'=='' " /> | 23 | <PackageReference Include="WixToolset.Data" Version="4.0.*" PrivateAssets="all" /> |
24 | <PackageReference Include="WixToolset.Extensibility" Version="4.0.*" PrivateAssets="all" /> | ||
25 | </ItemGroup> | 25 | </ItemGroup> |
26 | 26 | ||
27 | <ItemGroup> | 27 | <ItemGroup> |
28 | <PackageReference Include="Nerdbank.GitVersioning" Version="2.1.65" PrivateAssets="all" /> | 28 | <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="all" /> |
29 | <PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="all" /> | ||
29 | </ItemGroup> | 30 | </ItemGroup> |
30 | </Project> | 31 | </Project> |
diff --git a/src/wixext/WixToolset.VisualStudio.wixext.nuspec b/src/wixext/WixToolset.VisualStudio.wixext.nuspec new file mode 100644 index 00000000..51c9708e --- /dev/null +++ b/src/wixext/WixToolset.VisualStudio.wixext.nuspec | |||
@@ -0,0 +1,23 @@ | |||
1 | <?xml version="1.0"?> | ||
2 | <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
3 | <metadata minClientVersion="4.0"> | ||
4 | <id>$id$</id> | ||
5 | <version>$version$</version> | ||
6 | <title>$title$</title> | ||
7 | <description>$description$</description> | ||
8 | <authors>$authors$</authors> | ||
9 | <license type="expression">MS-RL</license> | ||
10 | <requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
11 | <copyright>$copyright$</copyright> | ||
12 | <projectUrl>$projectUrl$</projectUrl> | ||
13 | <repository type="$repositorytype$" url="$repositoryurl$" commit="$repositorycommit$" /> | ||
14 | </metadata> | ||
15 | |||
16 | <files> | ||
17 | <file src="$projectFolder$$id$.targets" target="build" /> | ||
18 | |||
19 | <file src="netstandard2.0\$id$.dll" target="tools" /> | ||
20 | |||
21 | <file src="x86\*.pdb" target="pdbs\x86" /> | ||
22 | </files> | ||
23 | </package> | ||
diff --git a/src/wixlib/vs.wixproj b/src/wixlib/vs.wixproj index 8da8378d..40333913 100644 --- a/src/wixlib/vs.wixproj +++ b/src/wixlib/vs.wixproj | |||
@@ -1,4 +1,6 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
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 | <!-- 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. --> |
3 | |||
2 | <Project Sdk="WixToolset.Sdk"> | 4 | <Project Sdk="WixToolset.Sdk"> |
3 | 5 | ||
4 | <PropertyGroup> | 6 | <PropertyGroup> |
@@ -8,11 +10,11 @@ | |||
8 | </PropertyGroup> | 10 | </PropertyGroup> |
9 | 11 | ||
10 | <ItemGroup> | 12 | <ItemGroup> |
11 | <ProjectReference Include="..\ca\vsca.vcxproj" /> | 13 | <ProjectReference Include="..\ca\vsca.vcxproj" Properties="Platform=x86" ReferenceOutputAssembly="false" /> |
12 | </ItemGroup> | 14 | </ItemGroup> |
13 | 15 | ||
14 | <ItemGroup> | 16 | <ItemGroup> |
15 | <PackageReference Include="Nerdbank.GitVersioning" Version="2.1.65" PrivateAssets="All" /> | 17 | <PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="All" /> |
16 | </ItemGroup> | 18 | </ItemGroup> |
17 | 19 | ||
18 | </Project> | 20 | </Project> |