Skip to content

Commit

Permalink
fixed package for wpf code generation / build process
Browse files Browse the repository at this point in the history
more info: dotnet/wpf#810
  • Loading branch information
6bee committed Aug 26, 2021
1 parent f355246 commit bdd1807
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 8 deletions.
7 changes: 4 additions & 3 deletions aqua.tool.Validation/aqua.tool.Validation.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata minClientVersion="4.8">
<id>aqua.tool.Validation</id>
<version>1.3.0</version>
<version>1.4.0</version>
<authors>Christof Senn</authors>
<owners>Christof Senn</owners>
<copyright>Copyright © Christof Senn 2021</copyright>
Expand All @@ -19,14 +19,15 @@ Requires C# 8.0 or later.</description>
<tags>c# csharp validation</tags>
<dependencies>
<group>
<dependency id="aqua.tool.polyfill.Nullable" version="1.0.1" include="all" />
<dependency id="aqua.tool.polyfill.Nullable" version="1.1.0" include="all" />
</group>
</dependencies>
<contentFiles>
<files include="**/*.cs.pp" />
</contentFiles>
</metadata>
<files>
<file src="**/*.*;../license.txt;../aqua-small.png" exclude="**/.*;*.nuspec" target="" />
<file src="**/*.*" exclude="**/.*;*.nuspec" target="" />
<file src="../license.txt;../aqua-small.png" target="" />
</files>
</package>
12 changes: 12 additions & 0 deletions aqua.tool.Validation/build/aqua.tool.Validation.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<!--
Special treatment for WPF build process.
More info: https://github.com/dotnet/wpf/issues/810
-->
<ItemGroup Condition=" '$(UseWPF)' == 'true' ">
<_GeneratedCodeFiles Include="$(MSBuildThisFileDirectory)../contentFiles/cs/netstandard1.0/**/*.cs.pp" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildThisFileDirectory)../build/$(MSBuildThisFile)" />
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata minClientVersion="4.8">
<id>aqua.tool.polyfill.IsExternalInit</id>
<version>1.0.0</version>
<version>1.1.0</version>
<authors>Christof Senn</authors>
<owners>Christof Senn</owners>
<copyright>Copyright © Christof Senn 2021</copyright>
Expand All @@ -22,6 +22,7 @@ This package generats a polyfill type to resolve "Error CS0518 - Predefined type
</contentFiles>
</metadata>
<files>
<file src="**/*.*;../license.txt;../aqua-small.png" exclude="**/.*;*.nuspec" target="" />
<file src="**/*.*" exclude="**/.*;*.nuspec" target="" />
<file src="../license.txt;../aqua-small.png" target="" />
</files>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<!--
Special treatment for WPF build process.
More info: https://github.com/dotnet/wpf/issues/810
-->
<ItemGroup Condition=" '$(UseWPF)' == 'true' ">
<_GeneratedCodeFiles Include="$(MSBuildThisFileDirectory)../contentFiles/cs/netstandard1.0/**/*.cs.pp" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildThisFileDirectory)../build/$(MSBuildThisFile)" />
</Project>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata minClientVersion="4.8">
<id>aqua.tool.polyfill.Nullable</id>
<version>1.0.1</version>
<version>1.1.0</version>
<authors>Christof Senn</authors>
<owners>Christof Senn</owners>
<copyright>Copyright © Christof Senn 2020</copyright>
Expand Down Expand Up @@ -31,6 +31,7 @@ Requires C# 8.0 or later.</description>
</contentFiles>
</metadata>
<files>
<file src="**/*.*;../license.txt;../aqua-small.png" exclude="**/.*;*.nuspec" target="" />
<file src="**/*.*" exclude="**/.*;*.nuspec" target="" />
<file src="../license.txt;../aqua-small.png" target="" />
</files>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<!--
Special treatment for WPF build process.
More info: https://github.com/dotnet/wpf/issues/810
-->
<ItemGroup Condition=" '$(UseWPF)' == 'true' ">
<_GeneratedCodeFiles Include="$(MSBuildThisFileDirectory)../contentFiles/cs/netstandard1.0/**/*.cs.pp" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildThisFileDirectory)../build/$(MSBuildThisFile)" />
</Project>

0 comments on commit bdd1807

Please sign in to comment.