|
13 | 13 | <FileVersion Condition="'$(VersionSuffix)' != '' AND '$(BuildNumber)' != ''">$(VersionPrefix).$(BuildNumber)</FileVersion>
|
14 | 14 | <FileVersion Condition="'$(FileVersion)' == ''">$(VersionPrefix).0</FileVersion>
|
15 | 15 |
|
16 |
| - <NhAppTargetFrameworks Condition ="$(NhAppTargetFrameworks) == ''">net461;netcoreapp2.0</NhAppTargetFrameworks> |
| 16 | + <NhAppTargetFrameworks Condition ="$(NhAppTargetFrameworks) == ''">net461;net6.0</NhAppTargetFrameworks> |
17 | 17 | <NhLibTargetFrameworks Condition ="$(NhLibTargetFrameworks) == ''">net461;netcoreapp2.0;netstandard2.0</NhLibTargetFrameworks>
|
18 | 18 | <NhNetFx>false</NhNetFx>
|
19 | 19 | <NhNetFx Condition="$(TargetFramework.StartsWith('net4'))">true</NhNetFx>
|
20 |
| - <DefineConstants Condition="$(NhNetFx) AND $(NhVbNet) == ''" >NETFX;$(DefineConstants)</DefineConstants> |
| 20 | + <!-- Visual Basic requires to use coma (,) as a separator, other project types - semicolon (;) --> |
| 21 | + <DefineConstants Condition="$(NhNetFx) AND '$(MSBuildProjectExtension)' != '.vbproj'">NETFX;$(DefineConstants)</DefineConstants> |
| 22 | + <DefineConstants Condition="$(NhNetFx) AND '$(MSBuildProjectExtension)' == '.vbproj'">NETFX,$(DefineConstants)</DefineConstants> |
21 | 23 |
|
22 | 24 | <Product>NHibernate</Product>
|
23 | 25 | <Company>NHibernate.info</Company>
|
24 | 26 | <Copyright>Licensed under LGPL.</Copyright>
|
25 | 27 | <Authors>NHibernate community, Hibernate community</Authors>
|
26 | 28 | <NeutralLanguage>en-US</NeutralLanguage>
|
27 | 29 |
|
| 30 | + <TreatWarningsAsErrors>True</TreatWarningsAsErrors> |
| 31 | + <TreatSpecificWarningsAsErrors /> |
| 32 | + |
| 33 | + <DisableImplicitPackageTargetFallback>True</DisableImplicitPackageTargetFallback> |
| 34 | + </PropertyGroup> |
| 35 | + <PropertyGroup Condition="'$(IsPackable)' == 'True'"> |
28 | 36 | <PackageProjectUrl>https://nhibernate.info</PackageProjectUrl>
|
29 | 37 | <PackageIconUrl>https://raw.githubusercontent.com/nhibernate/nhibernate-core/master/logo/NHibernate-NuGet.png</PackageIconUrl>
|
30 | 38 | <PackageIcon>NHibernate-NuGet.png</PackageIcon>
|
|
35 | 43 | <PublishRepositoryUrl>true</PublishRepositoryUrl>
|
36 | 44 | <IncludeSymbols>true</IncludeSymbols>
|
37 | 45 | <SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
38 |
| - |
39 |
| - <TreatWarningsAsErrors>True</TreatWarningsAsErrors> |
40 |
| - <TreatSpecificWarningsAsErrors /> |
41 |
| - |
42 |
| - <DisableImplicitPackageTargetFallback>True</DisableImplicitPackageTargetFallback> |
43 | 46 | </PropertyGroup>
|
44 | 47 | <ItemGroup>
|
45 | 48 | <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" />
|
|
0 commit comments