| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <Project>
- <!-- This has to be set in targets as the default props will overwrite -->
- <PropertyGroup>
- <!--<DebugType Condition="'$(IsTestProject)' != 'true' and '$(BuildingInsideVisualStudio)' != 'true' ">embedded</DebugType>-->
- <DebugType Condition="'$(IsTestProject)' != 'true' ">embedded</DebugType>
- </PropertyGroup>
-
- <!-- This props all need to be set in targets as they depend on the values set earlier -->
- <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.0'">
- <DefineConstants>$(DefineConstants);NO_ARRAY_EMPTY;NO_CODE_COVERAGE_ATTRIBUTE;CRIPPLED_REFLECTION</DefineConstants>
- </PropertyGroup>
- <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.3'">
- <DefineConstants>$(DefineConstants);NO_CODE_COVERAGE_ATTRIBUTE;CRIPPLED_REFLECTION</DefineConstants>
- </PropertyGroup>
- <PropertyGroup Condition="'$(TargetFramework)' == 'net45'">
- <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') ">
-
- <MSBuild Projects="$(MSBuildThisFileDirectory)refs\$(MSBuildProjectName)\$(MSBuildProjectName).csproj"
- Targets="_GetTargetFrameworksOutput">
- <Output TaskParameter="TargetOutputs"
- ItemName="_RefTargetFrameworks" />
- </MSBuild>
- <MSBuild Projects="$(MSBuildThisFileDirectory)refs\$(MSBuildProjectName)\$(MSBuildProjectName).csproj"
- Targets="_GetReferenceAssemblies"
- Properties="TargetFramework=%(_RefTargetFrameworks.Identity)">
- <Output TaskParameter="TargetOutputs"
- ItemName="_refAssms" />
- </MSBuild>
- <ItemGroup>
- <None Include="@(_refAssms)" PackagePath="ref/%(_refAssms.TargetFramework)" Pack="true" />
- </ItemGroup>
- </Target>
- </Project>
|