Move [SkipLocalsInit] logic to .targets file
このコミットが含まれているのは:
1 親
983e874f4d
コミット
69515867e6
11ファイル変更
+43
-30
検索条件に一致するファイルはありません
@@ -1,3 +0,0 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[module: SkipLocalsInit]
|
||||
@@ -1,7 +1,5 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[module: SkipLocalsInit]
|
||||
|
||||
[assembly: InternalsVisibleTo("ComputeSharp")]
|
||||
[assembly: InternalsVisibleTo("ComputeSharp.Dynamic")]
|
||||
[assembly: InternalsVisibleTo("ComputeSharp.Pix")]
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[module: SkipLocalsInit]
|
||||
@@ -1,6 +1,3 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[module: SkipLocalsInit]
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[assembly: SupportedOSPlatform("windows6.1")]
|
||||
@@ -1,8 +1,6 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[module: SkipLocalsInit]
|
||||
|
||||
[assembly: SupportedOSPlatform("windows6.2")]
|
||||
|
||||
[assembly: InternalsVisibleTo("ComputeSharp.Tests.Internals")]
|
||||
@@ -1,6 +1,3 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[module: SkipLocalsInit]
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[assembly: SupportedOSPlatform("windows6.2")]
|
||||
@@ -1,3 +0,0 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[module: SkipLocalsInit]
|
||||
@@ -1,6 +1,3 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
[module: SkipLocalsInit]
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
[assembly: ComVisible(false)]
|
||||
@@ -1,3 +0,0 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[module: SkipLocalsInit]
|
||||
@@ -1,8 +1,6 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[module: SkipLocalsInit]
|
||||
|
||||
[assembly: SupportedOSPlatform("windows6.2")]
|
||||
|
||||
[assembly: InternalsVisibleTo("ComputeSharp.Dynamic")]
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<Import Project="..\Directory.Build.targets" />
|
||||
|
||||
<!--
|
||||
The following target has been ported from TerraFX.Interop.Windows.
|
||||
See: https://github.com/terrafx/terrafx.interop.windows.
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<GeneratedSkipLocalsInitFile Condition="'$(GeneratedSkipLocalsInitFile)' == ''">$(IntermediateOutputPath)$(MSBuildProjectName).SkipLocalsInit.g.cs</GeneratedSkipLocalsInitFile>
|
||||
<GeneratedSkipLocalsInitFileLines>
|
||||
<![CDATA[//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
[module: System.Runtime.CompilerServices.SkipLocalsInitAttribute]]]>
|
||||
</GeneratedSkipLocalsInitFileLines>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="GenerateSkipLocalsInit"
|
||||
BeforeTargets="BeforeCompile;CoreCompile"
|
||||
DependsOnTargets="PrepareForBuild"
|
||||
Condition="'$(Language)' == 'C#'"
|
||||
Inputs="$(MSBuildAllProjects)"
|
||||
Outputs="$(GeneratedSkipLocalsInitFile)">
|
||||
|
||||
<!-- Write the file with the attribute -->
|
||||
<WriteLinesToFile Lines="$(GeneratedSkipLocalsInitFileLines)" Overwrite="true" WriteOnlyWhenDifferent="true" File="$(GeneratedSkipLocalsInitFile)" />
|
||||
|
||||
<!-- Include the generated file in the list of files to compile -->
|
||||
<ItemGroup>
|
||||
<Compile Include="$(GeneratedSkipLocalsInitFile)" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
</Project>
|
||||
新しいイシューから参照
ユーザーをブロックする