diff options
author | Viktor Hofer <viktor.hofer@microsoft.com> | 2022-02-17 10:57:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-17 10:57:36 +0300 |
commit | 4c2ea7e9010e9c71bfba332e430e92f00e19c04e (patch) | |
tree | 905ee6f98f6edc8ec03cff294708a1279af13c6d /eng/referenceAssemblies.props | |
parent | 8c406af4aad0cba8ae36baa02a92fb6bbb0b1c49 (diff) |
Avoid additional AssemblyInfo output file (#65465)
Avoid the additional AssemblyInfo file which is placed under
"$(IntermediateOutputPath)_AssemblyInfo.cs/vb" and remove the
"_WriteNonStringAssemblyInfoAttributes" target that isn't necessary
anymore now that msbuild supports specifying assembly attributes with
non string types.
https://github.com/dotnet/msbuild/commit/c4cda20d0720ba3d467df7ef487b63f79eb848a0
Diffstat (limited to 'eng/referenceAssemblies.props')
-rw-r--r-- | eng/referenceAssemblies.props | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/eng/referenceAssemblies.props b/eng/referenceAssemblies.props index ac60b93d57b..f61d15a3926 100644 --- a/eng/referenceAssemblies.props +++ b/eng/referenceAssemblies.props @@ -22,10 +22,12 @@ <NoWarn>$(NoWarn);CS8617</NoWarn> </PropertyGroup> + <!-- All reference assemblies should have a ReferenceAssemblyAttribute and the 0x70 flag which prevents them from loading. --> <ItemGroup> - <!-- All reference assemblies should have the 0x70 flag which prevents them from loading - and the ReferenceAssemblyAttribute. --> - <AssemblyInfoLines Include="[assembly:System.Runtime.CompilerServices.ReferenceAssembly]" /> - <AssemblyInfoLines Include="[assembly:System.Reflection.AssemblyFlags((System.Reflection.AssemblyNameFlags)0x70)]" /> + <AssemblyAttribute Include="System.Runtime.CompilerServices.ReferenceAssemblyAttribute" /> + <AssemblyAttribute Include="System.Reflection.AssemblyFlags"> + <_Parameter1>(System.Reflection.AssemblyNameFlags)0x70</_Parameter1> + <_Parameter1_IsLiteral>true</_Parameter1_IsLiteral> + </AssemblyAttribute> </ItemGroup> </Project> |