mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-09 09:34:49 +09:00
Delete NS2x runtime specific impls (#64610)
* Remove .NETStandard runtime implementations Remove the remaining ten .NETStandard runtime specific implementations. For reasoning please see https://github.com/dotnet/runtime/issues/64536. * Remove infra support for NS platform specific tfms Also cleaning-up some logic and stop disabling AppendTargetFramework.
This commit is contained in:
parent
bccc18bb6c
commit
ef5803de62
46 changed files with 41 additions and 479 deletions
|
@ -92,6 +92,3 @@ In order to mitigate design-time/build-time performance issues with source gener
|
|||
<DisableSourceGeneratorPropertyName>CustomPropertyName</DisableSourceGeneratorPropertyName>
|
||||
</PropertyGroup>
|
||||
```
|
||||
|
||||
### .NETFramework RID specific assets
|
||||
When targeting .NETFramework, RID specific assets are automatically added to the package if the project contains other compatible RID specific assets, mainly `netstandard2.0-windows`.
|
||||
|
|
|
@ -1,20 +1,5 @@
|
|||
<Project>
|
||||
|
||||
<PropertyGroup Condition="$(TargetFramework.Contains('-'))">
|
||||
<_OriginalTargetFramework>$(TargetFramework)</_OriginalTargetFramework>
|
||||
<TargetFrameworkSuffix>$(TargetFramework.SubString($([MSBuild]::Add($(TargetFramework.IndexOf('-')), 1))))</TargetFrameworkSuffix>
|
||||
<!-- Strip away the TargetPlatform during the build for non .NETCoreApp frameworks because the assets file does not know about the TargetPlatform. -->
|
||||
<TargetFramework>$([System.Text.RegularExpressions.Regex]::Replace('$(TargetFramework)', '$(TargetFrameworkPattern)', '${1}'))</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(MSBuildThisDirectory)targetframeworksuffix.props" Condition="'$(DesignTimeBuild)' == 'true'" />
|
||||
|
||||
<PropertyGroup>
|
||||
<IntermediateOutputPath>$([MSBuild]::NormalizeDirectory('$(BaseIntermediateOutputPath)', '$(TargetFramework)-$(Configuration)'))</IntermediateOutputPath>
|
||||
<IntermediateOutputPath Condition="'$(TargetFrameworkSuffix)' != '' and !$(TargetFramework.Contains('-'))">$([MSBuild]::NormalizeDirectory('$(BaseIntermediateOutputPath)', '$(TargetFramework)-$(TargetFrameworkSuffix)-$(Configuration)'))</IntermediateOutputPath>
|
||||
<!-- setting the output paths -->
|
||||
<OutputPath>$([MSBuild]::NormalizeDirectory('$(BaseOutputPath)', '$(TargetFramework)-$(Configuration)'))</OutputPath>
|
||||
<OutputPath Condition="'$(TargetFrameworkSuffix)' != '' and !$(TargetFramework.Contains('-'))">$([MSBuild]::NormalizeDirectory('$(BaseOutputPath)', '$(TargetFramework)-$(TargetFrameworkSuffix)-$(Configuration)'))</OutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -216,10 +216,7 @@ if ($vs) {
|
|||
# Respect the RuntimeConfiguration variable for building inside VS with different runtime configurations
|
||||
$env:RUNTIMECONFIGURATION=$runtimeConfiguration
|
||||
}
|
||||
|
||||
# Restore the solution to workaround https://github.com/dotnet/runtime/issues/32205
|
||||
Invoke-Expression "& dotnet restore $vs"
|
||||
|
||||
|
||||
# Launch Visual Studio with the locally defined environment variables
|
||||
."$vs"
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<PackDependsOn>AddNETStandardCompatErrorFileForPackaging;IncludeAnalyzersInPackage;$(PackDependsOn)</PackDependsOn>
|
||||
<BeforePack>AddNETStandardCompatErrorFileForPackaging;IncludeAnalyzersInPackage;$(BeforePack)</BeforePack>
|
||||
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);AddRuntimeSpecificFilesToPackage;IncludePrivateProjectReferencesWithPackAttributeInPackage</TargetsForTfmSpecificContentInPackage>
|
||||
<IncludeBuildOutput Condition="'$(TargetFrameworkSuffix)' != ''">false</IncludeBuildOutput>
|
||||
<IncludeBuildOutput Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(TargetPlatformIdentifier)' != ''">false</IncludeBuildOutput>
|
||||
<!-- Don't include target platform specific dependencies, since we use the target platform to represent RIDs instead -->
|
||||
<SuppressDependenciesWhenPacking Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(TargetPlatformIdentifier)' != ''">true</SuppressDependenciesWhenPacking>
|
||||
<PackageDesignerMarkerFile>$(MSBuildThisFileDirectory)useSharedDesignerContext.txt</PackageDesignerMarkerFile>
|
||||
|
@ -73,7 +73,6 @@
|
|||
</PropertyGroup>
|
||||
<ItemGroup Condition="'$(AddNETFrameworkPlaceholderFileToPackage)' == 'true'">
|
||||
<None Include="$(PlaceholderFile)" PackagePath="$(BuildOutputTargetFolder)/$(NetFrameworkMinimum)" Pack="true" />
|
||||
<None Include="$(PlaceholderFile)" PackagePath="runtimes/win/$(BuildOutputTargetFolder)/$(NetFrameworkMinimum)" Pack="true" Condition="$(TargetFrameworks.Contains('netstandard2.0-windows'))" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(AddXamarinPlaceholderFilesToPackage)' == 'true'">
|
||||
<None Include="$(PlaceholderFile)" PackagePath="$(BuildOutputTargetFolder)/MonoAndroid10" Pack="true" />
|
||||
|
@ -96,19 +95,18 @@
|
|||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
<!-- Add runtime specific file into the package if the tfm is RID specific or if the tfm targets .NETFramework and netstandard2.0-windows TFM is present.
|
||||
This is necessary as compatible RID specific tfms win over compatible RID agnostic tfms. Hence without this, netstandard2.0-windows would win over net461. -->
|
||||
<!-- Add runtime specific file into the package if the tfm is RID specific. -->
|
||||
<Target Name="AddRuntimeSpecificFilesToPackage"
|
||||
DependsOnTargets="BuiltProjectOutputGroup;
|
||||
DocumentationProjectOutputGroup;
|
||||
SatelliteDllsProjectOutputGroup;
|
||||
$(TargetsForTfmSpecificBuildOutput)"
|
||||
Condition="'$(TargetFrameworkSuffix)' != '' or
|
||||
('$(TargetFrameworkIdentifier)' == '.NETFramework' and $(TargetFrameworks.Contains('netstandard2.0-windows')))">
|
||||
Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(TargetPlatformIdentifier)' != ''">
|
||||
<PropertyGroup>
|
||||
<RuntimeSymbolPath>$(TargetDir)$(TargetName).pdb</RuntimeSymbolPath>
|
||||
<_packageTargetRuntime Condition="'$(TargetFrameworkIdentifier)' != '.NETFramework'">$(PackageTargetRuntime)</_packageTargetRuntime>
|
||||
<_packageTargetRuntime Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">win</_packageTargetRuntime>
|
||||
<_packageTargetRuntime>$(TargetPlatformIdentifier.ToLowerInvariant().Replace('windows', 'win'))</_packageTargetRuntime>
|
||||
<_targetFrameworkWithoutSuffix>$(TargetFramework)</_targetFrameworkWithoutSuffix>
|
||||
<_targetFrameworkWithoutSuffix Condition="$(TargetFramework.Contains('-'))">$(TargetFramework.SubString(0, $(TargetFramework.IndexOf('-'))))</_targetFrameworkWithoutSuffix>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -116,10 +114,10 @@
|
|||
@(BuiltProjectOutputGroupOutput);
|
||||
@(DocumentationProjectOutputGroupOutput)" />
|
||||
<TfmSpecificPackageFile Include="@(TfmRuntimeSpecificPackageFile)"
|
||||
PackagePath="runtimes/$(_packageTargetRuntime)/$(BuildOutputTargetFolder)/$(TargetFrameworkWithoutSuffix)" />
|
||||
PackagePath="runtimes/$(_packageTargetRuntime)/$(BuildOutputTargetFolder)/$(_targetFrameworkWithoutSuffix)" />
|
||||
<TfmSpecificDebugSymbolsFile Include="$(RuntimeSymbolPath)"
|
||||
TargetPath="/runtimes/$(_packageTargetRuntime)/$(BuildOutputTargetFolder)/$(TargetFrameworkWithoutSuffix)/%(Filename)%(Extension)"
|
||||
TargetFramework="$(TargetFrameworkWithoutSuffix)"
|
||||
TargetPath="/runtimes/$(_packageTargetRuntime)/$(BuildOutputTargetFolder)/$(_targetFrameworkWithoutSuffix)/%(Filename)%(Extension)"
|
||||
TargetFramework="$(_targetFrameworkWithoutSuffix)"
|
||||
Condition="'$(IncludeSymbols)' == 'true' and Exists('$(RuntimeSymbolPath)')" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -8,105 +8,91 @@
|
|||
This is required for platforms not expected to have a version,
|
||||
and we currently omit the version for all platforms. -->
|
||||
<SupportedOSPlatformVersion>0.0</SupportedOSPlatformVersion>
|
||||
<TargetPlatformIdentifier Condition="$(TargetFramework.Contains('-'))">$(TargetFramework.SubString($([MSBuild]::Add($(TargetFramework.IndexOf('-')), 1))))</TargetPlatformIdentifier>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(TargetFrameworkSuffix)' != '' and '$(TargetFrameworkSuffix)' != 'windows'">
|
||||
<TargetPlatformIdentifier>$(TargetFrameworkSuffix)</TargetPlatformIdentifier>
|
||||
<PropertyGroup Condition="'$(TargetPlatformIdentifier)' != '' and '$(TargetPlatformIdentifier)' != 'windows'">
|
||||
<TargetPlatformVersion>1.0</TargetPlatformVersion>
|
||||
<TargetPlatformMoniker>$(TargetFrameworkSuffix),Version=$(TargetPlatformVersion)</TargetPlatformMoniker>
|
||||
</PropertyGroup>
|
||||
|
||||
<Choose>
|
||||
<When Condition="'$(TargetFrameworkSuffix)' == 'windows'">
|
||||
<When Condition="'$(TargetPlatformIdentifier)' == 'windows'">
|
||||
<PropertyGroup>
|
||||
<TargetsWindows>true</TargetsWindows>
|
||||
<PackageTargetRuntime>win</PackageTargetRuntime>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(TargetFrameworkSuffix)' == 'Unix'">
|
||||
<When Condition="'$(TargetPlatformIdentifier)' == 'Unix'">
|
||||
<PropertyGroup>
|
||||
<TargetsUnix>true</TargetsUnix>
|
||||
<PackageTargetRuntime>unix</PackageTargetRuntime>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(TargetFrameworkSuffix)' == 'Linux'">
|
||||
<When Condition="'$(TargetPlatformIdentifier)' == 'Linux'">
|
||||
<PropertyGroup>
|
||||
<TargetsUnix>true</TargetsUnix>
|
||||
<TargetsLinux>true</TargetsLinux>
|
||||
<PackageTargetRuntime>linux</PackageTargetRuntime>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(TargetFrameworkSuffix)' == 'Android'">
|
||||
<When Condition="'$(TargetPlatformIdentifier)' == 'Android'">
|
||||
<PropertyGroup>
|
||||
<TargetsUnix>true</TargetsUnix>
|
||||
<TargetsLinux>true</TargetsLinux>
|
||||
<TargetsAndroid>true</TargetsAndroid>
|
||||
<PackageTargetRuntime>android</PackageTargetRuntime>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(TargetFrameworkSuffix)' == 'OSX'">
|
||||
<When Condition="'$(TargetPlatformIdentifier)' == 'OSX'">
|
||||
<PropertyGroup>
|
||||
<TargetsUnix>true</TargetsUnix>
|
||||
<TargetsOSX>true</TargetsOSX>
|
||||
<PackageTargetRuntime>osx</PackageTargetRuntime>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(TargetFrameworkSuffix)' == 'MacCatalyst'">
|
||||
<When Condition="'$(TargetPlatformIdentifier)' == 'MacCatalyst'">
|
||||
<PropertyGroup>
|
||||
<TargetsUnix>true</TargetsUnix>
|
||||
<TargetsMacCatalyst>true</TargetsMacCatalyst>
|
||||
<PackageTargetRuntime>maccatalyst</PackageTargetRuntime>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(TargetFrameworkSuffix)' == 'tvOS'">
|
||||
<When Condition="'$(TargetPlatformIdentifier)' == 'tvOS'">
|
||||
<PropertyGroup>
|
||||
<TargetsUnix>true</TargetsUnix>
|
||||
<TargetstvOS>true</TargetstvOS>
|
||||
<PackageTargetRuntime>tvos</PackageTargetRuntime>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(TargetFrameworkSuffix)' == 'iOS'">
|
||||
<When Condition="'$(TargetPlatformIdentifier)' == 'iOS'">
|
||||
<PropertyGroup>
|
||||
<TargetsUnix>true</TargetsUnix>
|
||||
<TargetsiOS>true</TargetsiOS>
|
||||
<PackageTargetRuntime>ios</PackageTargetRuntime>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(TargetFrameworkSuffix)' == 'FreeBSD'">
|
||||
<When Condition="'$(TargetPlatformIdentifier)' == 'FreeBSD'">
|
||||
<PropertyGroup>
|
||||
<TargetsUnix>true</TargetsUnix>
|
||||
<TargetsFreeBSD>true</TargetsFreeBSD>
|
||||
<PackageTargetRuntime>freebsd</PackageTargetRuntime>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(TargetFrameworkSuffix)' == 'NetBSD'">
|
||||
<When Condition="'$(TargetPlatformIdentifier)' == 'NetBSD'">
|
||||
<PropertyGroup>
|
||||
<TargetsUnix>true</TargetsUnix>
|
||||
<TargetsNetBSD>true</TargetsNetBSD>
|
||||
<PackageTargetRuntime>netbsd</PackageTargetRuntime>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(TargetFrameworkSuffix)' == 'illumos'">
|
||||
<When Condition="'$(TargetPlatformIdentifier)' == 'illumos'">
|
||||
<PropertyGroup>
|
||||
<TargetsUnix>true</TargetsUnix>
|
||||
<Targetsillumos>true</Targetsillumos>
|
||||
<PackageTargetRuntime>illumos</PackageTargetRuntime>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(TargetFrameworkSuffix)' == 'Solaris'">
|
||||
<When Condition="'$(TargetPlatformIdentifier)' == 'Solaris'">
|
||||
<PropertyGroup>
|
||||
<TargetsUnix>true</TargetsUnix>
|
||||
<TargetsSolaris>true</TargetsSolaris>
|
||||
<PackageTargetRuntime>solaris</PackageTargetRuntime>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(TargetFrameworkSuffix)' == 'Browser'">
|
||||
<When Condition="'$(TargetPlatformIdentifier)' == 'Browser'">
|
||||
<PropertyGroup>
|
||||
<TargetsBrowser>true</TargetsBrowser>
|
||||
<PackageTargetRuntime>browser</PackageTargetRuntime>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(TargetFrameworkSuffix)' == ''">
|
||||
<When Condition="'$(TargetPlatformIdentifier)' == ''">
|
||||
<PropertyGroup>
|
||||
<TargetsAnyOS>true</TargetsAnyOS>
|
||||
</PropertyGroup>
|
||||
|
|
|
@ -24,10 +24,9 @@
|
|||
|
||||
<PropertyGroup Condition="'$(TargetsMobile)' == 'true'">
|
||||
<!-- Test runners are built as part of libs.pretest so we need to use libraries configuration -->
|
||||
<MobileRunnersDirSuffix>$(NetCoreAppCurrent)-$(Configuration)</MobileRunnersDirSuffix>
|
||||
<AppleTestRunnerDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AppleTestRunner', '$(MobileRunnersDirSuffix)'))</AppleTestRunnerDir>
|
||||
<AndroidTestRunnerDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AndroidTestRunner', '$(MobileRunnersDirSuffix)'))</AndroidTestRunnerDir>
|
||||
<WasmTestRunnerDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'WasmTestRunner', '$(MobileRunnersDirSuffix)'))</WasmTestRunnerDir>
|
||||
<AppleTestRunnerDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AppleTestRunner', '$(Configuration)', '$(NetCoreAppCurrent)'))</AppleTestRunnerDir>
|
||||
<AndroidTestRunnerDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AndroidTestRunner', '$(Configuration)', '$(NetCoreAppCurrent)'))</AndroidTestRunnerDir>
|
||||
<WasmTestRunnerDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'WasmTestRunner', '$(Configuration)', '$(NetCoreAppCurrent)'))</WasmTestRunnerDir>
|
||||
|
||||
<RuntimeIdentifier>$(PackageRID)</RuntimeIdentifier>
|
||||
<SelfContained>true</SelfContained>
|
||||
|
|
|
@ -78,11 +78,6 @@
|
|||
<!-- We can't generate an apphost without restoring the targeting pack. -->
|
||||
<UseAppHost>false</UseAppHost>
|
||||
<EnableDefaultItems>false</EnableDefaultItems>
|
||||
<!--
|
||||
Microsoft.NET.TargetFrameworkInference.targets appends the TargetFramework.
|
||||
We do this manually and use the Configuration instead.
|
||||
-->
|
||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Language configuration -->
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
<_generateRuntimeGraphTargetFramework Condition="'$(MSBuildRuntimeType)' == 'core'">$(NetCoreAppToolCurrent)</_generateRuntimeGraphTargetFramework>
|
||||
<_generateRuntimeGraphTargetFramework Condition="'$(MSBuildRuntimeType)' != 'core'">net472</_generateRuntimeGraphTargetFramework>
|
||||
<_generateRuntimeGraphTask>$([MSBuild]::NormalizePath('$(BaseOutputPath)', '$(_generateRuntimeGraphTargetFramework)-$(Configuration)', '$(AssemblyName).dll'))</_generateRuntimeGraphTask>
|
||||
<_generateRuntimeGraphTask>$([MSBuild]::NormalizePath('$(BaseOutputPath)', $(Configuration), '$(_generateRuntimeGraphTargetFramework)', '$(AssemblyName).dll'))</_generateRuntimeGraphTask>
|
||||
<!-- When building from source, ensure the RID we're building for is part of the RID graph -->
|
||||
<AdditionalRuntimeIdentifiers Condition="'$(DotNetBuildFromSource)' == 'true'">$(AdditionalRuntimeIdentifiers);$(OutputRID)</AdditionalRuntimeIdentifiers>
|
||||
</PropertyGroup>
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -9,7 +9,7 @@ Commonly Used Types:
|
|||
System.Security.AccessControl.RegistryAccessRule
|
||||
System.Security.AccessControl.RegistryAuditRule
|
||||
System.Security.AccessControl.RegistrySecurity</PackageDescription>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.0-windows;netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. -->
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.0-windows;netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<Nullable>enable</Nullable>
|
||||
<!-- Supress CA2249: Consider using String.Contains instead of String.IndexOf to avoid ifdefs. -->
|
||||
|
@ -129,13 +129,10 @@ System.Data.OleDb.OleDbTransaction</PackageDescription>
|
|||
<Compile Include="System\Data\ProviderBase\DbReferenceCollection.cs" />
|
||||
<Compile Include="System\Data\ProviderBase\WrappedIUnknown.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(IsPartialFacadeAssembly)' != 'true' and '$(TargetsWindows)' == 'true' and $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net5.0'))">
|
||||
<ItemGroup Condition="'$(TargetsWindows)' == 'true' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
|
||||
<Compile Include="UnsafeNativeMethods.COMWrappers.cs" />
|
||||
<Compile Include="OleDbComWrappers.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(IsPartialFacadeAssembly)' != 'true' and '$(TargetsWindows)' == 'true' and !$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net5.0'))">
|
||||
<Compile Include="UnsafeNativeMethods.NoCOMWrappers.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Resources\System.Data.OleDb.OleDbMetaData.xml"
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Data.Common
|
||||
{
|
||||
internal static partial class UnsafeNativeMethods
|
||||
{
|
||||
//
|
||||
// Oleaut32
|
||||
//
|
||||
|
||||
[DllImport(Interop.Libraries.OleAut32, CharSet = CharSet.Unicode, PreserveSig = true)]
|
||||
internal static extern System.Data.OleDb.OleDbHResult GetErrorInfo(
|
||||
int dwReserved,
|
||||
[MarshalAs(UnmanagedType.Interface)] out UnsafeNativeMethods.IErrorInfo? ppIErrorInfo);
|
||||
|
||||
internal static void ReleaseErrorInfoObject(UnsafeNativeMethods.IErrorInfo errorInfo)
|
||||
{
|
||||
Marshal.ReleaseComObject(errorInfo);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -4,7 +4,7 @@
|
|||
<DefineConstants>$(DefineConstants);SERIAL_PORTS</DefineConstants>
|
||||
<IncludeDllSafeSearchPathAttribute>true</IncludeDllSafeSearchPathAttribute>
|
||||
<Nullable>annotations</Nullable>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-Unix;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum)-Unix;$(NetCoreAppMinimum);netstandard2.0-windows;netstandard2.0-Unix;netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-Unix;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum)-Unix;$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
<IsPackable>true</IsPackable>
|
||||
<PackageDescription>Provides classes for controlling serial ports.
|
||||
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<IncludeDllSafeSearchPathAttribute>true</IncludeDllSafeSearchPathAttribute>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.1-windows;netstandard2.1;netstandard2.0-windows;netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.1;netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<Nullable>enable</Nullable>
|
||||
<IsPackable>true</IsPackable>
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.0-windows;netstandard2.0</TargetFrameworks>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.0</TargetFrameworks>
|
||||
<IsPackable>true</IsPackable>
|
||||
<Nullable>Annotations</Nullable>
|
||||
<AddNETFrameworkPlaceholderFileToPackage>true</AddNETFrameworkPlaceholderFileToPackage>
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -4,7 +4,7 @@
|
|||
<IncludeDllSafeSearchPathAttribute>true</IncludeDllSafeSearchPathAttribute>
|
||||
<NoWarn>$(NoWarn);CA5384</NoWarn>
|
||||
<Nullable>enable</Nullable>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.1-windows;netstandard2.1;netstandard2.0-windows;netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.1;netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
<IsPackable>true</IsPackable>
|
||||
<PackageDescription>Provides support for PKCS and CMS algorithms.
|
||||
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.0-windows;netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
<Nullable>enable</Nullable>
|
||||
<IsPackable>true</IsPackable>
|
||||
<AddXamarinPlaceholderFilesToPackage>true</AddXamarinPlaceholderFilesToPackage>
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.0-windows;netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
<NoWarn>$(NoWarn);CA2249</NoWarn>
|
||||
<Nullable>enable</Nullable>
|
||||
<IsPackable>true</IsPackable>
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -2,7 +2,7 @@
|
|||
<PropertyGroup>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<Nullable>enable</Nullable>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.0-windows;netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
<IncludePlatformAttributes>true</IncludePlatformAttributes>
|
||||
<IsPackable>true</IsPackable>
|
||||
<AddXamarinPlaceholderFilesToPackage>true</AddXamarinPlaceholderFilesToPackage>
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
<configuration>
|
||||
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
|
||||
<packageRestore>
|
||||
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
|
||||
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
|
||||
automatic restore. -->
|
||||
<add key="automatic" value="False" />
|
||||
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
|
||||
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
|
||||
<add key="enabled" value="False" />
|
||||
</packageRestore>
|
||||
</configuration>
|
|
@ -1,6 +1,6 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.0-windows;netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);$(NetCoreAppMinimum)-windows;$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<Nullable>enable</Nullable>
|
||||
<IsPackable>true</IsPackable>
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
<!--
|
||||
Targets that can be executed individually even though they are sequenced into build already:
|
||||
- UpdateSolutionFile: Adds/updates solution files with slngen which includes dependencies.
|
||||
- AddNuGetConfigToSolution: Checks if the solution needs a NuGet.config file to disable restore.
|
||||
-->
|
||||
<Project Sdk="Microsoft.Build.NoTargets">
|
||||
<PropertyGroup>
|
||||
<ProjTemplatePath>$(RepositoryEngineeringDir)slngen.template.proj</ProjTemplatePath>
|
||||
<NuGetConfigTemplatePath>$(RepositoryEngineeringDir)slngen.nuget.config</NuGetConfigTemplatePath>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -30,37 +28,6 @@
|
|||
<Delete Files="%(SolutionFile.ProjFilePath)" />
|
||||
</Target>
|
||||
|
||||
<Target Name="AddNuGetConfigToSolution"
|
||||
AfterTargets="Build"
|
||||
DependsOnTargets="GetSolutionFiles;GetSourceProjectWithDuplicateTfm"
|
||||
Inputs="@(SolutionFile)"
|
||||
Outputs="%(NuGetConfigFilePath)">
|
||||
<!-- Delete existing NuGet.config files -->
|
||||
<Delete Files="%(SolutionFile.NuGetConfigFilePath)" />
|
||||
|
||||
<!-- Check if solution file contains a source project with a duplicate tfm -->
|
||||
<PropertyGroup>
|
||||
<SolutionFileContent>$([System.IO.File]::ReadAllText('%(SolutionFile.Identity)'))</SolutionFileContent>
|
||||
<SolutionFileContainsSourceProjectWithDuplicateTfm />
|
||||
<SolutionFileContainsSourceProjectWithDuplicateTfm Condition="$(SolutionFileContent.Contains('src\%(SourceProjectWithDuplicateTfm.Identity)'))">true</SolutionFileContainsSourceProjectWithDuplicateTfm>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Copy NuGet config template file -->
|
||||
<Copy SourceFiles="$(NuGetConfigTemplatePath)"
|
||||
DestinationFiles="%(SolutionFile.NuGetConfigFilePath)"
|
||||
Condition="'$(SolutionFileContainsSourceProjectWithDuplicateTfm)' == 'true'" />
|
||||
|
||||
<Message Text="Copying NuGet.config template file for %(SolutionFile.Filename)"
|
||||
Importance="high"
|
||||
Condition="'$(SolutionFileContainsSourceProjectWithDuplicateTfm)' == 'true'" />
|
||||
</Target>
|
||||
|
||||
<Target Name="ClearNuGetConfigFile"
|
||||
DependsOnTargets="GetSolutionFiles">
|
||||
<!-- Delete existing NuGet.config files -->
|
||||
<Delete Files="%(SolutionFile.NuGetConfigFilePath)" />
|
||||
</Target>
|
||||
|
||||
<Target Name="GetSolutionFiles">
|
||||
<ItemGroup>
|
||||
<!-- Add attributes that require a separate item mutation. -->
|
||||
|
@ -68,27 +35,4 @@
|
|||
NuGetConfigFilePath="%(RelativeDir)NuGet.config" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
<Target Name="GetSourceProjectWithDuplicateTfm"
|
||||
Inputs="@(SourceProject)"
|
||||
Outputs="%(Identity)">
|
||||
<!-- Check if project file contains duplicate tfms -->
|
||||
<PropertyGroup>
|
||||
<ProjectFileContent>$([System.IO.File]::ReadAllText('%(SourceProject.Identity)'))</ProjectFileContent>
|
||||
<!-- Get the target framework string out of the project file -->
|
||||
<ProjectFileTargetFrameworks>$([System.Text.RegularExpressions.Regex]::Match($(ProjectFileContent), '<TargetFrameworks>(.+%3F)<\/TargetFrameworks>'))</ProjectFileTargetFrameworks>
|
||||
<ProjectFileTargetFrameworks>$(ProjectFileTargetFrameworks.Replace('<TargetFrameworks>', ''))</ProjectFileTargetFrameworks>
|
||||
<ProjectFileTargetFrameworks>$(ProjectFileTargetFrameworks.Replace('</TargetFrameworks>', ''))</ProjectFileTargetFrameworks>
|
||||
<!-- Strip away TargetFrameworkSuffixes -->
|
||||
<ProjectFileTargetFrameworks>$([System.Text.RegularExpressions.Regex]::Replace('$(ProjectFileTargetFrameworks)', '(-[^;]+)', ''))</ProjectFileTargetFrameworks>
|
||||
<!-- Check for duplicates of non .NETCoreApp frameworks -->
|
||||
<ProjectFileTargetFrameworksHasDuplicates>$([System.Text.RegularExpressions.Regex]::IsMatch('$(ProjectFileTargetFrameworks);', '(netstandard.+|net4.+)(?=.*;\1;)'))</ProjectFileTargetFrameworksHasDuplicates>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<SourceProjectWithDuplicateTfm Include="%(SourceProject.Filename)%(SourceProject.Extension)"
|
||||
Condition="'%(Identity)' == '%(SourceProject.Identity)' and
|
||||
'$(ProjectFileTargetFrameworksHasDuplicates)' == 'true'" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue