diff options
Diffstat (limited to 'src/internal')
7 files changed, 45 insertions, 13 deletions
diff --git a/src/internal/SetBuildNumber/SetBuildNumber.proj b/src/internal/SetBuildNumber/SetBuildNumber.proj index 2ae49e19..23788d52 100644 --- a/src/internal/SetBuildNumber/SetBuildNumber.proj +++ b/src/internal/SetBuildNumber/SetBuildNumber.proj | |||
@@ -10,19 +10,27 @@ | |||
10 | <!-- Explicitly set the restore sources because this project may run before the build\artifacts folder has been created --> | 10 | <!-- Explicitly set the restore sources because this project may run before the build\artifacts folder has been created --> |
11 | <RestoreSources>https://api.nuget.org/v3/index.json</RestoreSources> | 11 | <RestoreSources>https://api.nuget.org/v3/index.json</RestoreSources> |
12 | <RestoreIgnoreFailedSources>true</RestoreIgnoreFailedSources> | 12 | <RestoreIgnoreFailedSources>true</RestoreIgnoreFailedSources> |
13 | |||
14 | <Language>C#</Language> | ||
15 | <DefaultLanguageSourceExtension>.cs</DefaultLanguageSourceExtension> | ||
16 | <GitThisAssembly>true</GitThisAssembly> | ||
13 | </PropertyGroup> | 17 | </PropertyGroup> |
14 | 18 | ||
15 | <PropertyGroup> | 19 | <PropertyGroup> |
16 | <SetBuildNumbersDependsOn> | 20 | <SetBuildNumbersDependsOn> |
17 | __SetPropertiesFromGit; | 21 | __SetPropertiesFromGit; |
22 | GitThisAssembly; | ||
18 | SetAppVeyorBuildNumber; | 23 | SetAppVeyorBuildNumber; |
19 | SetGlobalJson; | 24 | SetGlobalJson; |
20 | SetDirectoryPackagesProps; | 25 | SetDirectoryPackagesProps; |
26 | SetOverallWixVersions; | ||
21 | InstallSigningClient | 27 | InstallSigningClient |
22 | </SetBuildNumbersDependsOn> | 28 | </SetBuildNumbersDependsOn> |
23 | 29 | ||
24 | <GlobalJsonPath>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\..\global.json))</GlobalJsonPath> | 30 | <GlobalJsonPath>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\..\global.json))</GlobalJsonPath> |
25 | <CentralPackageVersionsPath>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\..\Directory.Packages.props))</CentralPackageVersionsPath> | 31 | <CentralPackageVersionsPath>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\..\Directory.Packages.props))</CentralPackageVersionsPath> |
32 | <OverallWixVersionsPath>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\..\build\wixver.props))</OverallWixVersionsPath> | ||
33 | <GitInfoThisAssemblyFile>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\..\build\ThisAssembly.WixVer.cs))</GitInfoThisAssemblyFile> | ||
26 | </PropertyGroup> | 34 | </PropertyGroup> |
27 | 35 | ||
28 | <Target Name="SetAppVeyorBuildNumber" | 36 | <Target Name="SetAppVeyorBuildNumber" |
@@ -89,6 +97,30 @@ | |||
89 | </Target> | 97 | </Target> |
90 | 98 | ||
91 | 99 | ||
100 | <Target Name="SetOverallWixVersions" | ||
101 | Inputs="wixver.props.pp" | ||
102 | Outputs="$(OverallWixVersionsPath)"> | ||
103 | <PropertyGroup> | ||
104 | <OverallWixVersionsTextHeader><!-- DO NOT MODIFY! Auto-generated from internal\SetBuildNumber\wixver.props.pp --></OverallWixVersionsTextHeader> | ||
105 | <OverallWixVersionsText>$([System.IO.File]::ReadAllText(wixver.props.pp))</OverallWixVersionsText> | ||
106 | <OverallWixVersionsText>$(OverallWixVersionsText.Replace('{GitBaseVersionMajor}', $(GitBaseVersionMajor)))</OverallWixVersionsText> | ||
107 | <OverallWixVersionsText>$(OverallWixVersionsText.Replace('{GitBaseVersionMinor}', $(GitBaseVersionMinor)))</OverallWixVersionsText> | ||
108 | <OverallWixVersionsText>$(OverallWixVersionsText.Replace('{GitBaseVersionPatch}', $(GitBaseVersionPatch)))</OverallWixVersionsText> | ||
109 | <OverallWixVersionsText>$(OverallWixVersionsText.Replace('{GitCommits}', $(GitCommits)))</OverallWixVersionsText> | ||
110 | <OverallWixVersionsText>$(OverallWixVersionsText.Replace('{GitSemVerDashLabel}', $(GitSemVerDashLabel)))</OverallWixVersionsText> | ||
111 | <OverallWixVersionsText>$(OverallWixVersionsText.Replace('{GitSha}', $(GitSha)))</OverallWixVersionsText> | ||
112 | <OverallWixVersionsText>$(OverallWixVersionsText.Replace('{GitRepositoryUrl}', $(GitRepositoryUrl.Replace('.git',''))))</OverallWixVersionsText> | ||
113 | </PropertyGroup> | ||
114 | |||
115 | <WriteLinesToFile File="$(OverallWixVersionsPath)" | ||
116 | Lines="$(OverallWixVersionsTextHeader);$(OverallWixVersionsText)" | ||
117 | Overwrite="true" | ||
118 | WriteOnlyWhenDifferent="true" /> | ||
119 | |||
120 | <Message Importance="high" Text="$(MSBuildProjectName) -> $(OverallWixVersionsPath)" /> | ||
121 | </Target> | ||
122 | |||
123 | |||
92 | <Target Name="InstallSigningClient" | 124 | <Target Name="InstallSigningClient" |
93 | DependsOnTargets="_GetSignClient" | 125 | DependsOnTargets="_GetSignClient" |
94 | Condition=" '$(SigningUser)'!='' "> | 126 | Condition=" '$(SigningUser)'!='' "> |
diff --git a/src/internal/SetBuildNumber/wixver.props.pp b/src/internal/SetBuildNumber/wixver.props.pp new file mode 100644 index 00000000..3197181f --- /dev/null +++ b/src/internal/SetBuildNumber/wixver.props.pp | |||
@@ -0,0 +1,13 @@ | |||
1 | <Project> | ||
2 | <PropertyGroup> | ||
3 | <GitInfoFromCache>true</GitInfoFromCache> | ||
4 | <GitInfoImported>true</GitInfoImported> | ||
5 | <GitBaseVersionMajor>{GitBaseVersionMajor}</GitBaseVersionMajor> | ||
6 | <GitBaseVersionMinor>{GitBaseVersionMinor}</GitBaseVersionMinor> | ||
7 | <GitBaseVersionPatch>{GitBaseVersionPatch}</GitBaseVersionPatch> | ||
8 | <GitCommits>{GitCommits}</GitCommits> | ||
9 | <GitSemVerDashLabel>{GitSemVerDashLabel}</GitSemVerDashLabel> | ||
10 | <GitSha>{GitSha}</GitSha> | ||
11 | <GitRepositoryUrl>{GitRepositoryUrl}</GitRepositoryUrl> | ||
12 | </PropertyGroup> | ||
13 | </Project> | ||
diff --git a/src/internal/WixBuildFinalize/WixBuildFinalize.proj b/src/internal/WixBuildFinalize/WixBuildFinalize.proj index 18c68245..d161f2cf 100644 --- a/src/internal/WixBuildFinalize/WixBuildFinalize.proj +++ b/src/internal/WixBuildFinalize/WixBuildFinalize.proj | |||
@@ -6,10 +6,6 @@ | |||
6 | <TargetFramework>net472</TargetFramework> | 6 | <TargetFramework>net472</TargetFramework> |
7 | </PropertyGroup> | 7 | </PropertyGroup> |
8 | 8 | ||
9 | <ItemGroup> | ||
10 | <PackageReference Include="GitInfo" PrivateAssets="All" /> | ||
11 | </ItemGroup> | ||
12 | |||
13 | <Target Name="ZipPdbs" DependsOnTargets="__SetPropertiesFromGit" BeforeTargets="AfterBuild"> | 9 | <Target Name="ZipPdbs" DependsOnTargets="__SetPropertiesFromGit" BeforeTargets="AfterBuild"> |
14 | <ZipDirectory | 10 | <ZipDirectory |
15 | SourceDirectory="$(PdbsFolder)" | 11 | SourceDirectory="$(PdbsFolder)" |
diff --git a/src/internal/WixBuildTools.MsgGen/WixBuildTools.MsgGen.csproj b/src/internal/WixBuildTools.MsgGen/WixBuildTools.MsgGen.csproj index d12d3623..f8da4bfc 100644 --- a/src/internal/WixBuildTools.MsgGen/WixBuildTools.MsgGen.csproj +++ b/src/internal/WixBuildTools.MsgGen/WixBuildTools.MsgGen.csproj | |||
@@ -20,9 +20,4 @@ | |||
20 | <EmbeddedResource Include="Xsd\messages.xsd" /> | 20 | <EmbeddedResource Include="Xsd\messages.xsd" /> |
21 | </ItemGroup> | 21 | </ItemGroup> |
22 | 22 | ||
23 | <ItemGroup> | ||
24 | <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" /> | ||
25 | <PackageReference Include="GitInfo" PrivateAssets="All" /> | ||
26 | </ItemGroup> | ||
27 | |||
28 | </Project> | 23 | </Project> |
diff --git a/src/internal/WixBuildTools.XsdGen/WixBuildTools.XsdGen.csproj b/src/internal/WixBuildTools.XsdGen/WixBuildTools.XsdGen.csproj index 6698bff7..5a45dba7 100644 --- a/src/internal/WixBuildTools.XsdGen/WixBuildTools.XsdGen.csproj +++ b/src/internal/WixBuildTools.XsdGen/WixBuildTools.XsdGen.csproj | |||
@@ -23,6 +23,5 @@ | |||
23 | 23 | ||
24 | <ItemGroup> | 24 | <ItemGroup> |
25 | <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" /> | 25 | <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" /> |
26 | <PackageReference Include="GitInfo" PrivateAssets="All" /> | ||
27 | </ItemGroup> | 26 | </ItemGroup> |
28 | </Project> | 27 | </Project> |
diff --git a/src/internal/WixInternal.TestSupport.Native/build/WixInternal.TestSupport.Native.targets b/src/internal/WixInternal.TestSupport.Native/build/WixInternal.TestSupport.Native.targets index 6525e65a..ed3d728a 100644 --- a/src/internal/WixInternal.TestSupport.Native/build/WixInternal.TestSupport.Native.targets +++ b/src/internal/WixInternal.TestSupport.Native/build/WixInternal.TestSupport.Native.targets | |||
@@ -32,13 +32,11 @@ | |||
32 | </Reference> | 32 | </Reference> |
33 | </ItemGroup> | 33 | </ItemGroup> |
34 | 34 | ||
35 | <Import Project="$(RootPackagesFolder)GitInfo.2.2.0\build\GitInfo.targets" Condition="Exists('$(RootPackagesFolder)GitInfo.2.2.0\build\GitInfo.targets')" /> | ||
36 | <Import Project="$(RootPackagesFolder)xunit.core.2.4.2\build\xunit.core.targets" Condition="Exists('$(RootPackagesFolder)xunit.core.2.4.2\build\xunit.core.targets')" /> | 35 | <Import Project="$(RootPackagesFolder)xunit.core.2.4.2\build\xunit.core.targets" Condition="Exists('$(RootPackagesFolder)xunit.core.2.4.2\build\xunit.core.targets')" /> |
37 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | 36 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
38 | <PropertyGroup> | 37 | <PropertyGroup> |
39 | <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> | 38 | <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> |
40 | </PropertyGroup> | 39 | </PropertyGroup> |
41 | <Error Condition="!Exists('$(RootPackagesFolder)GitInfo.2.2.0\build\GitInfo.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(RootPackagesFolder)GitInfo.2.2.0\build\GitInfo.targets'))" /> | ||
42 | <Error Condition="!Exists('$(RootPackagesFolder)xunit.core.2.4.2\build\xunit.core.props')" Text="$([System.String]::Format('$(ErrorText)', '$(RootPackagesFolder)xunit.core.2.4.2\build\xunit.core.props'))" /> | 40 | <Error Condition="!Exists('$(RootPackagesFolder)xunit.core.2.4.2\build\xunit.core.props')" Text="$([System.String]::Format('$(ErrorText)', '$(RootPackagesFolder)xunit.core.2.4.2\build\xunit.core.props'))" /> |
43 | <Error Condition="!Exists('$(RootPackagesFolder)xunit.core.2.4.2\build\xunit.core.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(RootPackagesFolder)xunit.core.2.4.2\build\xunit.core.targets'))" /> | 41 | <Error Condition="!Exists('$(RootPackagesFolder)xunit.core.2.4.2\build\xunit.core.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(RootPackagesFolder)xunit.core.2.4.2\build\xunit.core.targets'))" /> |
44 | <Error Condition="!Exists('$(RootPackagesFolder)xunit.runner.visualstudio.2.4.5\build\net462\xunit.runner.visualstudio.props')" Text="$([System.String]::Format('$(ErrorText)', '$(RootPackagesFolder)xunit.runner.visualstudio.2.4.5\build\net462\xunit.runner.visualstudio.props'))" /> | 42 | <Error Condition="!Exists('$(RootPackagesFolder)xunit.runner.visualstudio.2.4.5\build\net462\xunit.runner.visualstudio.props')" Text="$([System.String]::Format('$(ErrorText)', '$(RootPackagesFolder)xunit.runner.visualstudio.2.4.5\build\net462\xunit.runner.visualstudio.props'))" /> |
diff --git a/src/internal/WixInternal.TestSupport.Native/packages.config b/src/internal/WixInternal.TestSupport.Native/packages.config index ef2b43c8..603b945a 100644 --- a/src/internal/WixInternal.TestSupport.Native/packages.config +++ b/src/internal/WixInternal.TestSupport.Native/packages.config | |||
@@ -6,7 +6,6 @@ | |||
6 | Update build\WixInternal.TestSupport.Native.props and build\WixInternal.TestSupport.Native.targets | 6 | Update build\WixInternal.TestSupport.Native.props and build\WixInternal.TestSupport.Native.targets |
7 | when any of these versions are updated. | 7 | when any of these versions are updated. |
8 | --> | 8 | --> |
9 | <package id="GitInfo" version="2.2.0" /> | ||
10 | <package id="xunit.abstractions" version="2.0.3" /> | 9 | <package id="xunit.abstractions" version="2.0.3" /> |
11 | <package id="xunit.assert" version="2.4.2" /> | 10 | <package id="xunit.assert" version="2.4.2" /> |
12 | <package id="xunit.core" version="2.4.2" /> | 11 | <package id="xunit.core" version="2.4.2" /> |