Sfoglia il codice sorgente

Move Product to targets so it gets applied

Oren Novotny 7 anni fa
parent
commit
df41e6dc9a

+ 1 - 2
Ix.NET/Source/Directory.build.props

@@ -1,7 +1,6 @@
-<Project>  
+<Project>  
   
   <PropertyGroup>
-    <Product>$(AssemblyName) ($(TargetFramework))</Product>
     <Copyright>Copyright (c) .NET Foundation and Contributors.</Copyright>
     <MinClientVersion>2.12</MinClientVersion>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>

+ 4 - 1
Ix.NET/Source/Directory.build.targets

@@ -1,4 +1,4 @@
-<Project>  
+<Project>  
   <!-- This has to be set in targets as the default props will overwrite -->
   <PropertyGroup>
     <DebugType Condition="'$(IsTestProject)' != 'true'">embedded</DebugType>
@@ -15,6 +15,9 @@
     <DefineConstants>$(DefineConstants);NO_ARRAY_EMPTY</DefineConstants>
   </PropertyGroup>
 
+  <PropertyGroup>
+    <Product>$(AssemblyName) ($(TargetFramework))</Product>
+  </PropertyGroup>
 
   <Target Name="GetRefsForPackage" BeforeTargets="_GetPackageFiles" 
           Condition=" Exists('$(MSBuildThisFileDirectory)refs\$(MSBuildProjectName)\$(MSBuildProjectName).csproj') ">