Link the same IsExternalInit.cs into every project rather than copying it

This commit is contained in:
Dustin Campbell 2022-09-07 15:54:45 -07:00
Родитель 53907cc138
Коммит 55c6b60806
11 изменённых файлов: 21 добавлений и 90 удалений

Просмотреть файл

@ -48,6 +48,7 @@
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)eng\BannedSymbols.txt" />
<Compile Include="$(MSBuildThisFileDirectory)\src\Shared\LanguageSupport\*.cs" Link="LanguageSupport\%(Filename).%(Extension)" />
</ItemGroup>
<PropertyGroup Label="Package and Assembly Metadata">

Просмотреть файл

@ -1,10 +0,0 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root for license information.
namespace System.Runtime.CompilerServices
{
// Used to compile against C# 9 in a net472 app.
internal class IsExternalInit
{
}
}

Просмотреть файл

@ -1,10 +0,0 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root for license information.
namespace System.Runtime.CompilerServices
{
// Used to compile against C# 9 in a net472 app.
internal class IsExternalInit
{
}
}

Просмотреть файл

@ -1,10 +0,0 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root for license information.
namespace System.Runtime.CompilerServices
{
// Used to compile against C# 9 in a netstandard2.0 app.
internal class IsExternalInit
{
}
}

Просмотреть файл

@ -1,10 +0,0 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root for license information.
namespace System.Runtime.CompilerServices
{
// Used to compile against C# 9 in a net472 app.
internal class IsExternalInit
{
}
}

Просмотреть файл

@ -1,10 +0,0 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root for license information.
namespace System.Runtime.CompilerServices
{
// Used to compile against C# 9 in a net472 app.
internal class IsExternalInit
{
}
}

Просмотреть файл

@ -1,10 +0,0 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root for license information.
namespace System.Runtime.CompilerServices
{
// Used to compile against C# 9 in a net472 app.
internal class IsExternalInit
{
}
}

Просмотреть файл

@ -1,10 +0,0 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root for license information.
namespace System.Runtime.CompilerServices
{
// Used to compile against C# 9 in a net472 app.
internal class IsExternalInit
{
}
}

Просмотреть файл

@ -1,10 +0,0 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root for license information.
namespace System.Runtime.CompilerServices
{
// Used to compile against C# 9 in a net472 app.
internal class IsExternalInit
{
}
}

Просмотреть файл

@ -1,10 +0,0 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root for license information.
namespace System.Runtime.CompilerServices
{
// Used to compile against C# 9 in a net472 app.
internal class IsExternalInit
{
}
}

Просмотреть файл

@ -0,0 +1,20 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root for license information.
#if !NET5_0_OR_GREATER
using System.ComponentModel;
namespace System.Runtime.CompilerServices;
/// <summary>
/// Reserved to be used by the compiler for tracking metadata.
/// This class should not be used by developers in source code.
/// This dummy class is required to compile records when targeting .NET Standard
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
internal class IsExternalInit
{
}
#endif