提交 99386c23 编写于 作者: B Brett V. Forsgren

update name of generated file to not collide with existing directory

上级 6ca6dd55
......@@ -29,7 +29,7 @@
</Target>
<Target Name="_GenerateBuildPropertiesFile"
Outputs="$(IntermediateOutputPath)$(ProjectName)\buildproperties.fs"
Outputs="$(IntermediateOutputPath)$(ProjectName).BuildProperties.fs"
BeforeTargets="BeforeBuild"
Condition="'$(Language)'=='F#'">
......@@ -44,15 +44,12 @@
<_BuildPropertyLines Include="let fsLanguageVersion = &quot;$(FSLANGUAGEVERSION)&quot;" />
</ItemGroup>
<MakeDir
Directories="$(IntermediateOutputPath)$(ProjectName)"
Condition="!Exists('$(IntermediateOutputPath)$(ProjectName)')" />
<WriteLinesToFile File="$(IntermediateOutputPath)$(ProjectName)\buildproperties.fs" Lines="@(_BuildPropertyLines)" Overwrite="true" WriteOnlyWhenDifferent="true" />
<WriteLinesToFile File="$(IntermediateOutputPath)$(ProjectName).BuildProperties.fs" Lines="@(_BuildPropertyLines)" Overwrite="true" WriteOnlyWhenDifferent="true" />
<!-- Make sure it will get cleaned -->
<ItemGroup>
<FileWrites Include="$(IntermediateOutputPath)$(ProjectName)\buildproperties.fs" />
<CompileBefore Include="$(IntermediateOutputPath)$(ProjectName)\buildproperties.fs" />
<FileWrites Include="$(IntermediateOutputPath)$(ProjectName).BuildProperties.fs" />
<CompileBefore Include="$(IntermediateOutputPath)$(ProjectName).BuildProperties.fs" />
</ItemGroup>
</Target>
......
......@@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework Condition=" '$(TestTargetFramework)' == '' ">3.0</TargetFramework>
<TargetFramework Condition=" '$(TestTargetFramework)' == '' ">netcoreapp3.0</TargetFramework>
<TargetFramework Condition=" '$(TestTargetFramework)' != '' ">$(TestTargetFramework)</TargetFramework>
<IsPackable>false</IsPackable>
<DefineConstants>NO_GENERATIVE</DefineConstants>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册