diff options
author | Rob Mensching <rob@firegiant.com> | 2022-02-23 17:49:50 -0800 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2022-02-23 18:33:52 -0800 |
commit | 82bfd1218699a08c8d9cd775fc9e3eef3ec519a2 (patch) | |
tree | 75ba1cf7a63dea85fc51ff1a6557d12854b34f53 | |
parent | a19f847fe38ad9df88a0dc61ec2caa8ea0cd507f (diff) | |
download | wix-82bfd1218699a08c8d9cd775fc9e3eef3ec519a2.tar.gz wix-82bfd1218699a08c8d9cd775fc9e3eef3ec519a2.tar.bz2 wix-82bfd1218699a08c8d9cd775fc9e3eef3ec519a2.zip |
Move nuget.config, global.json and Directory.Packages.props to root
Putting these files in the root means they can be used by the test
projects support projects that get copied to the `build` folder.
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | nuget.config (renamed from src/nuget.config) | 4 | ||||
-rw-r--r-- | src/build_official.cmd | 2 | ||||
-rw-r--r-- | src/clean.cmd | 3 | ||||
-rw-r--r-- | src/internal/SetBuildNumber/SetBuildNumber.proj | 4 | ||||
-rw-r--r-- | src/nuget_official.config | 4 | ||||
-rw-r--r-- | src/test/wix/TestData/Directory.Packages.props | 9 | ||||
-rw-r--r-- | src/test/wix/TestData/WixprojPackageVcxprojWindowsApp/WixprojPackageVcxprojWindowsApp.wixproj | 6 | ||||
-rw-r--r-- | src/test/wix/WixE2E/WixE2E.csproj | 1 |
9 files changed, 18 insertions, 21 deletions
@@ -207,7 +207,7 @@ PublishScripts/ | |||
207 | *.nuget.targets | 207 | *.nuget.targets |
208 | 208 | ||
209 | # Nuget personal access tokens and Credentials | 209 | # Nuget personal access tokens and Credentials |
210 | nuget.config | 210 | # nuget.config |
211 | 211 | ||
212 | # Microsoft Azure Build Output | 212 | # Microsoft Azure Build Output |
213 | csx/ | 213 | csx/ |
@@ -391,8 +391,8 @@ FodyWeavers.xsd | |||
391 | # WiX Specific Ignores | 391 | # WiX Specific Ignores |
392 | 392 | ||
393 | # Ignore global.json and Directory.Package.props since they are generated | 393 | # Ignore global.json and Directory.Package.props since they are generated |
394 | src/global.json | 394 | global.json |
395 | src/Directory.Packages.props | 395 | Directory.Packages.props |
396 | 396 | ||
397 | # Ignore downloaded tools | 397 | # Ignore downloaded tools |
398 | build/.tools/ | 398 | build/.tools/ |
diff --git a/src/nuget.config b/nuget.config index c2f68b16..2151ef89 100644 --- a/src/nuget.config +++ b/nuget.config | |||
@@ -1,12 +1,12 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <configuration> | 2 | <configuration> |
3 | <config> | 3 | <config> |
4 | <add key="repositoryPath" value="..\packages" /> | 4 | <add key="repositoryPath" value="packages" /> |
5 | </config> | 5 | </config> |
6 | <packageSources> | 6 | <packageSources> |
7 | <clear /> | 7 | <clear /> |
8 | <add key="nuget" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | 8 | <add key="nuget" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> |
9 | <add key="build" value="..\build\artifacts" /> | 9 | <add key="build" value="build\artifacts" /> |
10 | <!-- <add key="github" value="https://nuget.pkg.github.com/wixtoolset/UnifiedTest1/index.json" /> --> | 10 | <!-- <add key="github" value="https://nuget.pkg.github.com/wixtoolset/UnifiedTest1/index.json" /> --> |
11 | </packageSources> | 11 | </packageSources> |
12 | </configuration> | 12 | </configuration> |
diff --git a/src/build_official.cmd b/src/build_official.cmd index 55ac3550..63566260 100644 --- a/src/build_official.cmd +++ b/src/build_official.cmd | |||
@@ -1,7 +1,7 @@ | |||
1 | @setlocal | 1 | @setlocal |
2 | @pushd %~dp0 | 2 | @pushd %~dp0 |
3 | 3 | ||
4 | @copy nuget_official.config nuget.config | 4 | @copy nuget_official.config ..\nuget.config |
5 | 5 | ||
6 | build_all.cmd Release Official | 6 | build_all.cmd Release Official |
7 | 7 | ||
diff --git a/src/clean.cmd b/src/clean.cmd index 97a7dd3d..94f9a618 100644 --- a/src/clean.cmd +++ b/src/clean.cmd | |||
@@ -11,6 +11,9 @@ if exist ..\packages rd /s/q ..\packages | |||
11 | if exist Directory.Packages.props (del Directory.Packages.props) | 11 | if exist Directory.Packages.props (del Directory.Packages.props) |
12 | if exist global.json (del global.json) | 12 | if exist global.json (del global.json) |
13 | 13 | ||
14 | if exist ..\Directory.Packages.props (del ..\Directory.Packages.props) | ||
15 | if exist ..\global.json (del ..\global.json) | ||
16 | |||
14 | if exist "%_NUGET_CACHE%\wixbuildtools.testsupport" rd /s/q "%_NUGET_CACHE%\wixbuildtools.testsupport" | 17 | if exist "%_NUGET_CACHE%\wixbuildtools.testsupport" rd /s/q "%_NUGET_CACHE%\wixbuildtools.testsupport" |
15 | if exist "%_NUGET_CACHE%\wixtoolset.bal.wixext" rd /s/q "%_NUGET_CACHE%\wixtoolset.bal.wixext" | 18 | if exist "%_NUGET_CACHE%\wixtoolset.bal.wixext" rd /s/q "%_NUGET_CACHE%\wixtoolset.bal.wixext" |
16 | if exist "%_NUGET_CACHE%\wixtoolset.balutil" rd /s/q "%_NUGET_CACHE%\wixtoolset.balutil" | 19 | if exist "%_NUGET_CACHE%\wixtoolset.balutil" rd /s/q "%_NUGET_CACHE%\wixtoolset.balutil" |
diff --git a/src/internal/SetBuildNumber/SetBuildNumber.proj b/src/internal/SetBuildNumber/SetBuildNumber.proj index 6eb7d741..72bb2a0c 100644 --- a/src/internal/SetBuildNumber/SetBuildNumber.proj +++ b/src/internal/SetBuildNumber/SetBuildNumber.proj | |||
@@ -20,8 +20,8 @@ | |||
20 | SetDirectoryPackagesProps; | 20 | SetDirectoryPackagesProps; |
21 | </SetBuildNumbersDependsOn> | 21 | </SetBuildNumbersDependsOn> |
22 | 22 | ||
23 | <GlobalJsonPath>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\global.json))</GlobalJsonPath> | 23 | <GlobalJsonPath>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\..\global.json))</GlobalJsonPath> |
24 | <CentralPackageVersionsPath>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\Directory.Packages.props))</CentralPackageVersionsPath> | 24 | <CentralPackageVersionsPath>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\..\Directory.Packages.props))</CentralPackageVersionsPath> |
25 | </PropertyGroup> | 25 | </PropertyGroup> |
26 | 26 | ||
27 | <Target Name="SetAppVeyorBuildNumber" | 27 | <Target Name="SetAppVeyorBuildNumber" |
diff --git a/src/nuget_official.config b/src/nuget_official.config index 6d3c9a07..25adbeed 100644 --- a/src/nuget_official.config +++ b/src/nuget_official.config | |||
@@ -1,12 +1,12 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <configuration> | 2 | <configuration> |
3 | <config> | 3 | <config> |
4 | <add key="repositoryPath" value="..\packages" /> | 4 | <add key="repositoryPath" value="packages" /> |
5 | </config> | 5 | </config> |
6 | <packageSources> | 6 | <packageSources> |
7 | <clear /> | 7 | <clear /> |
8 | <add key="nuget" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | 8 | <add key="nuget" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> |
9 | <!-- <add key="github" value="https://nuget.pkg.github.com/wixtoolset/UnifiedTest1/index.json" /> --> | 9 | <!-- <add key="github" value="https://nuget.pkg.github.com/wixtoolset/UnifiedTest1/index.json" /> --> |
10 | <add key="build" value="..\build\artifacts" /> | 10 | <add key="build" value="build\artifacts" /> |
11 | </packageSources> | 11 | </packageSources> |
12 | </configuration> | 12 | </configuration> |
diff --git a/src/test/wix/TestData/Directory.Packages.props b/src/test/wix/TestData/Directory.Packages.props deleted file mode 100644 index 5a625aca..00000000 --- a/src/test/wix/TestData/Directory.Packages.props +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
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 | <!-- | ||
6 | This file prevents the import of WiX standard Directory.Packages.props | ||
7 | from the root src directory | ||
8 | --> | ||
9 | </Project> | ||
diff --git a/src/test/wix/TestData/WixprojPackageVcxprojWindowsApp/WixprojPackageVcxprojWindowsApp.wixproj b/src/test/wix/TestData/WixprojPackageVcxprojWindowsApp/WixprojPackageVcxprojWindowsApp.wixproj index bbd39870..63caf5c0 100644 --- a/src/test/wix/TestData/WixprojPackageVcxprojWindowsApp/WixprojPackageVcxprojWindowsApp.wixproj +++ b/src/test/wix/TestData/WixprojPackageVcxprojWindowsApp/WixprojPackageVcxprojWindowsApp.wixproj | |||
@@ -1,11 +1,15 @@ | |||
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. --> | 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 | 2 | ||
3 | <Project Sdk='WixToolset.Sdk'> | 3 | <Project Sdk='WixToolset.Sdk'> |
4 | <PropertyGroup> | ||
5 | <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
6 | </PropertyGroup> | ||
7 | |||
4 | <ItemGroup> | 8 | <ItemGroup> |
5 | <ProjectReference Include="..\VcxprojWindowsApp\VcxprojWindowsApp.vcxproj" /> | 9 | <ProjectReference Include="..\VcxprojWindowsApp\VcxprojWindowsApp.vcxproj" /> |
6 | <ProjectReference Include="..\WixprojLibraryVcxprojDll\WixprojLibraryVcxprojDll.wixproj" /> | 10 | <ProjectReference Include="..\WixprojLibraryVcxprojDll\WixprojLibraryVcxprojDll.wixproj" /> |
7 | <ProjectReference Include="..\WixprojModuleCsprojWinFormsNetFx\WixprojModuleCsprojWinFormsNetFx.wixproj" /> | 11 | <ProjectReference Include="..\WixprojModuleCsprojWinFormsNetFx\WixprojModuleCsprojWinFormsNetFx.wixproj" /> |
8 | 12 | ||
9 | <PackageReference Include="Wixtoolset.UI.wixext" Version="4.0.0-preview.1-build.205" /> | 13 | <PackageReference Include="Wixtoolset.UI.wixext" /> |
10 | </ItemGroup> | 14 | </ItemGroup> |
11 | </Project> | 15 | </Project> |
diff --git a/src/test/wix/WixE2E/WixE2E.csproj b/src/test/wix/WixE2E/WixE2E.csproj index 21e1f9f2..031979b6 100644 --- a/src/test/wix/WixE2E/WixE2E.csproj +++ b/src/test/wix/WixE2E/WixE2E.csproj | |||
@@ -10,7 +10,6 @@ | |||
10 | </PropertyGroup> | 10 | </PropertyGroup> |
11 | 11 | ||
12 | <ItemGroup> | 12 | <ItemGroup> |
13 | <Content Include="..\..\..\global.json" CopyToOutputDirectory="PreserveNewest" /> | ||
14 | <Content Include="..\TestData\**" CopyToOutputDirectory="PreserveNewest" Link="TestData\%(RecursiveDir)%(Filename)%(Extension)" /> | 13 | <Content Include="..\TestData\**" CopyToOutputDirectory="PreserveNewest" Link="TestData\%(RecursiveDir)%(Filename)%(Extension)" /> |
15 | </ItemGroup> | 14 | </ItemGroup> |
16 | 15 | ||