Skip to content

Commit fe19bf8

Browse files
refactor csproj
1 parent d3299a2 commit fe19bf8

File tree

1 file changed

+24
-45
lines changed

1 file changed

+24
-45
lines changed
Lines changed: 24 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,15 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop" ToolsVersion="15.0">
1+
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
2+
33
<PropertyGroup>
4-
<ProjectGuid>{8DE93D00-4B56-424B-AA7D-02C4A4A41F0D}</ProjectGuid>
5-
<RootNamespace>LambdaConverters</RootNamespace>
64
<TargetFrameworks>netcoreapp3.0;net46;net45</TargetFrameworks>
7-
</PropertyGroup>
8-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
9-
<DocumentationFile>bin\Debug\LambdaConverters.Wpf.xml</DocumentationFile>
10-
<Prefer32Bit>false</Prefer32Bit>
11-
</PropertyGroup>
12-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
13-
<DebugType>pdbonly</DebugType>
14-
<Optimize>true</Optimize>
15-
<OutputPath>bin\Release\</OutputPath>
16-
<DefineConstants>TRACE</DefineConstants>
17-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
18-
<DocumentationFile>bin\Release\LambdaConverters.Wpf.xml</DocumentationFile>
19-
<Prefer32Bit>false</Prefer32Bit>
20-
</PropertyGroup>
21-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
22-
<SignAssembly>true</SignAssembly>
23-
</PropertyGroup>
24-
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.0' ">
5+
<!--<UseWPF Condition=" '$(TargetFramework)' == 'netcoreapp3.0' ">true</UseWPF>-->
256
<UseWPF>true</UseWPF>
26-
</PropertyGroup>
27-
<PropertyGroup>
7+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
288
<AssemblyOriginatorKeyFile>Properties\LambdaConverters.public.snk</AssemblyOriginatorKeyFile>
29-
</PropertyGroup>
30-
<PropertyGroup>
319
<DelaySign>true</DelaySign>
3210
<PackageId>LambdaConverters</PackageId>
3311
<Version>3.0.0</Version>
3412
<Authors>Michael Damatov, Dimitri Enns, Alex Helms</Authors>
35-
<Company />
36-
<Product />
3713
<Description>The library allows to create IValueConverter, IMultiValueConverter, DataTemplateSelector, and ValidationRule objects with the most convenient syntax available, ideally, using the lambda expressions.</Description>
3814
<PackageLicenseUrl>https://github.com/michael-damatov/lambda-converters/blob/master/LICENSE</PackageLicenseUrl>
3915
<PackageProjectUrl>https://github.com/michael-damatov/lambda-converters</PackageProjectUrl>
@@ -42,33 +18,34 @@
4218
<PackageTags>lambda expression converter wpf strongly typed value multi data template selector validation rule</PackageTags>
4319
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
4420
</PropertyGroup>
45-
<ItemGroup>
21+
22+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
23+
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
24+
<DefineConstants>DEBUG;TRACE</DefineConstants>
25+
</PropertyGroup>
26+
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28+
<DebugType>pdbonly</DebugType>
29+
<SignAssembly>true</SignAssembly>
30+
</PropertyGroup>
31+
32+
<ItemGroup Condition="'$(TargetFramework)' != 'netcoreapp3.0'">
4633
<Reference Include="PresentationFramework" />
4734
<Reference Include="WindowsBase" />
4835
</ItemGroup>
36+
4937
<ItemGroup>
5038
<None Include="Properties\LambdaConverters.public.snk" />
5139
</ItemGroup>
40+
5241
<ItemGroup>
53-
<PackageReference Include="JetBrains.Annotations" Version="11.0.0">
54-
<PrivateAssets>All</PrivateAssets>
55-
</PackageReference>
42+
<PackageReference Include="JetBrains.Annotations" Version="11.0.0" PrivateAssets="All" />
5643
</ItemGroup>
44+
5745
<ItemGroup>
58-
<None Update="Annotations\LambdaConverters.Annotations.nuspec">
59-
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
60-
</None>
61-
<None Update="Annotations\LambdaConverters.Wpf\1.0.0.0.xml">
62-
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
63-
</None>
46+
<None Update="Annotations\**" CopyToOutputDirectory="Never" />
6447
</ItemGroup>
65-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
66-
Other similar extension points exist, see Microsoft.Common.targets.
67-
<Target Name="BeforeBuild">
68-
</Target>
69-
<Target Name="AfterBuild">
70-
</Target>
71-
-->
48+
7249
<Target Name="ResignAssemblies" AfterTargets="CopyFilesToOutputDirectory" Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
7350
<GetFrameworkSdkPath>
7451
<Output TaskParameter="Path" PropertyName="FrameworkSdkPath" />
@@ -79,7 +56,9 @@
7956
</PropertyGroup>
8057
<Exec Command="&quot;$(SnPath)&quot; -R &quot;$(TargetPath)&quot; &quot;$(SnkPath)&quot;" />
8158
</Target>
59+
8260
<Target Name="GenegateAnnotationsPackage" AfterTargets="GenerateNuspec">
8361
<Exec Command="&quot;$(SolutionDir)NuGet.exe&quot; pack &quot;$(MSBuildProjectDirectory)\Annotations\LambdaConverters.Annotations.nuspec&quot; -OutputDirectory &quot;$(MSBuildProjectDirectory)\bin\$(Configuration)&quot; -NoPackageAnalysis" />
8462
</Target>
63+
8564
</Project>

0 commit comments

Comments
 (0)