From 8ea2e5dbde83fd3cb55ec45353d95bbcfc0fc2ea Mon Sep 17 00:00:00 2001 From: Andrew Arnott Date: Thu, 14 Nov 2019 21:04:52 -0700 Subject: [PATCH] Improve support of WPF projects Workaround for #404 till the dependent bugs we have open against NuGet are resolved. This workaround is only complete with two xml snippets added to a WPF project: Add this just under the opening `` tag: ```xml ``` Add this just above the closing `` tag: ```xml ``` This is tested to work both for .NET Framework WPF projects and .NET Core WPF projects. --- .../build/Nerdbank.GitVersioning.targets | 46 +++++++++++-------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/src/Nerdbank.GitVersioning.Tasks/build/Nerdbank.GitVersioning.targets b/src/Nerdbank.GitVersioning.Tasks/build/Nerdbank.GitVersioning.targets index 2ce8ba2a2..a0d339298 100644 --- a/src/Nerdbank.GitVersioning.Tasks/build/Nerdbank.GitVersioning.targets +++ b/src/Nerdbank.GitVersioning.Tasks/build/Nerdbank.GitVersioning.targets @@ -1,23 +1,8 @@ - + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - GenerateNativeVersionInfo; - $(PrepareForBuildDependsOn); - - - - GenerateAssemblyVersionInfo; - $(PrepareResourcesDependsOn) - - - - GenerateAssemblyVersionInfo; - $(CoreCompileDependsOn) - - GetNuPkgVersion; $(VersionDependsOn) @@ -33,9 +18,6 @@ $(GetPackageVersionDependsOn) - - false - false @@ -53,6 +35,32 @@ + + + + + + false + + + + GenerateNativeVersionInfo; + $(PrepareForBuildDependsOn); + + + + GenerateAssemblyVersionInfo; + $(PrepareResourcesDependsOn) + + + + GenerateAssemblyVersionInfo; + $(CoreCompileDependsOn) + + + + + <_NBGV_BuildingRef>$(_NBGV_BuildingTag)