diff --git a/Arcade.slnx b/Arcade.slnx
index 2ea687820bd..1e9aa9aae67 100644
--- a/Arcade.slnx
+++ b/Arcade.slnx
@@ -61,7 +61,6 @@
-
@@ -73,7 +72,6 @@
-
diff --git a/Directory.Packages.props b/Directory.Packages.props
index b0a99283e20..96f2bbc6860 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -28,16 +28,10 @@
-
-
-
-
-
-
@@ -56,7 +50,6 @@
-
@@ -64,14 +57,9 @@
-
-
-
-
-
@@ -90,14 +78,14 @@
-
+
-
+
diff --git a/Documentation/HowToCreatePackages.md b/Documentation/HowToCreatePackages.md
index 3f9d96abce0..4b80cc52122 100644
--- a/Documentation/HowToCreatePackages.md
+++ b/Documentation/HowToCreatePackages.md
@@ -32,9 +32,9 @@ One of the goals of Arcade is to be a vehicle to provide code sharing. One of th
- If your package produces binaries that need to be signed, make sure to mark it as true or check the SignTool [documentation](../src/Microsoft.DotNet.SignTool/README.md) to see how to sign specific files.
-- If the package needs to target a version of .NET Framework we recommend you to use the Arcade defined version, which is stored in the $(NetFxTfm) property. For instance:
+- If the package needs to target a version of .NET Framework we recommend you to use the Arcade defined version, which is stored in the $(NetFrameworkMinimum), $(NetFrameworkCurrent) or $(NetFrameworkToolCurrent) properties. For instance:
- `$(NetFxTfm);netcoreapp2.0`
+ `$(NetFrameworkMinimum);netcoreapp2.0`
- There is no requirement to create a separate `.nuspec` file for the package. The package information will be automatically extracted from the `.csproj` file.
diff --git a/eng/BuildTask.Packages.props b/eng/BuildTask.Packages.props
deleted file mode 100644
index d8f9f790066..00000000000
--- a/eng/BuildTask.Packages.props
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/eng/BuildTask.targets b/eng/BuildTask.targets
index 68346ee899f..aeb8eda2676 100644
--- a/eng/BuildTask.targets
+++ b/eng/BuildTask.targets
@@ -1,7 +1,5 @@
-
-
false
true
@@ -10,8 +8,10 @@
true
tools
- true
- $(TargetsForTfmSpecificContentInPackage);_AddBuildOutputToPackageCore;_AddBuildOutputToPackageDesktop
+ net
+ $(TargetsForTfmSpecificContentInPackage);_AddBuildOutputToPackage
+
+ $(BeforePack);Publish
-
+
@@ -55,24 +55,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- net
-
+
+
-
-
-
- netframework
-
-
-
-
-
-
diff --git a/eng/Microsoft.DotNet.SwaggerGenerator.MSBuild.InTree.targets b/eng/Microsoft.DotNet.SwaggerGenerator.MSBuild.InTree.targets
index 750e240adb0..815402b0374 100644
--- a/eng/Microsoft.DotNet.SwaggerGenerator.MSBuild.InTree.targets
+++ b/eng/Microsoft.DotNet.SwaggerGenerator.MSBuild.InTree.targets
@@ -2,12 +2,7 @@
$([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'src', 'Microsoft.DotNet.SwaggerGenerator', 'Microsoft.DotNet.SwaggerGenerator.MSBuild'))
- $(ArtifactsBinDir)Microsoft.DotNet.SwaggerGenerator.MSBuild\$(Configuration)\
-
- $(MicrosoftDotNetSwaggerGeneratorMSBuildBaseOutputDirectory)$(BundledNETCoreAppTargetFramework)\
- $(MicrosoftDotNetSwaggerGeneratorMSBuildBaseOutputDirectory)$(NetFrameworkToolCurrent)\
-
- TaskHostFactory
+ $(ArtifactsBinDir)Microsoft.DotNet.SwaggerGenerator.MSBuild\$(Configuration)\
ResolveProjectReferences
@@ -24,11 +19,7 @@
-
- TargetFramework=$(BundledNETCoreAppTargetFramework)
- TargetFramework=$(NetFrameworkToolCurrent)
-
+ Private="false" />
diff --git a/eng/Version.Details.props b/eng/Version.Details.props
index 4236d9ae90a..c6546ed1c1d 100644
--- a/eng/Version.Details.props
+++ b/eng/Version.Details.props
@@ -9,7 +9,6 @@ This file should be imported by eng/Versions.props
4.8.0
4.8.0
- 2.0.0-preview.1.23470.14
2.0.0-preview.1.23470.14
10.0.100-preview.4.25220.1
@@ -27,7 +26,6 @@ This file should be imported by eng/Versions.props
8.0.0-preview.24461.2
- 9.0.0
9.0.0
9.0.0
9.0.0
@@ -35,14 +33,9 @@ This file should be imported by eng/Versions.props
9.0.0
9.0.0
9.0.0
- 9.0.0
- 9.0.0
9.0.0
- 9.0.0
9.0.0
9.0.0
- 9.0.0
- 9.0.0
2.0.0-preview.1.24305.1
@@ -63,7 +56,6 @@ This file should be imported by eng/Versions.props
$(MicrosoftCodeAnalysisCSharpPackageVersion)
$(MicrosoftNetCompilersToolsetPackageVersion)
- $(MicrosoftSymbolUploaderPackageVersion)
$(MicrosoftSymbolUploaderBuildTaskPackageVersion)
$(MicrosoftTemplateEngineAuthoringTasksPackageVersion)
@@ -81,7 +73,6 @@ This file should be imported by eng/Versions.props
$(MicrosoftSymbolManifestGeneratorPackageVersion)
- $(MicrosoftBclAsyncInterfacesPackageVersion)
$(MicrosoftExtensionsDependencyInjectionPackageVersion)
$(MicrosoftExtensionsDependencyInjectionAbstractionsPackageVersion)
$(MicrosoftExtensionsDependencyModelPackageVersion)
@@ -89,14 +80,9 @@ This file should be imported by eng/Versions.props
$(MicrosoftExtensionsFileSystemGlobbingPackageVersion)
$(MicrosoftExtensionsHttpPackageVersion)
$(MicrosoftExtensionsLoggingConsolePackageVersion)
- $(SystemCollectionsImmutablePackageVersion)
- $(SystemFormatsAsn1PackageVersion)
$(SystemIOPackagingPackageVersion)
- $(SystemReflectionMetadataPackageVersion)
$(SystemSecurityCryptographyPkcsPackageVersion)
$(SystemSecurityCryptographyXmlPackageVersion)
- $(SystemTextEncodingsWebPackageVersion)
- $(SystemTextJsonPackageVersion)
$(MicrosoftDeploymentDotNetReleasesPackageVersion)
diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
index 33eff93e1b6..b636650aa0e 100644
--- a/eng/Version.Details.xml
+++ b/eng/Version.Details.xml
@@ -12,10 +12,6 @@
https://dev.azure.com/dnceng/internal/_git/dotnet-symuploader
d617bc8ed2787c235a57cf0dcdfd087b86ff9521
-
- https://dev.azure.com/dnceng/internal/_git/dotnet-symuploader
- d617bc8ed2787c235a57cf0dcdfd087b86ff9521
-
https://github.com/dotnet/templating
43b5827697e501c442eb75ffff832cd4df2514fe
@@ -62,10 +58,6 @@
https://github.com/dotnet/runtime
d3981726bc8b0e179db50301daf9f22d42393096
-
- https://github.com/dotnet/runtime
- d3981726bc8b0e179db50301daf9f22d42393096
-
@@ -102,14 +94,6 @@
https://github.com/dotnet/runtime
d3981726bc8b0e179db50301daf9f22d42393096
-
- https://github.com/dotnet/runtime
- d3981726bc8b0e179db50301daf9f22d42393096
-
-
- https://github.com/dotnet/runtime
- d3981726bc8b0e179db50301daf9f22d42393096
-
https://github.com/dotnet/deployment-tools
d882ae4af9fb09a89e36487a9c8cb7dfde713927
@@ -118,24 +102,10 @@
https://github.com/dotnet/sdk
ef4c24166691977558e5312758df4313ab310dc0
-
-
- https://github.com/dotnet/runtime
- d3981726bc8b0e179db50301daf9f22d42393096
-
https://github.com/dotnet/command-line-api
c7b5e07cfed85e88c162dc1c916efaff03742e6e
-
-
- https://github.com/dotnet/runtime
- d3981726bc8b0e179db50301daf9f22d42393096
-
-
- https://github.com/dotnet/runtime
- d3981726bc8b0e179db50301daf9f22d42393096
-
https://github.com/dotnet/runtime
d3981726bc8b0e179db50301daf9f22d42393096
diff --git a/eng/Versions.props b/eng/Versions.props
index 3a98a43aa40..e470f10f3e4 100644
--- a/eng/Versions.props
+++ b/eng/Versions.props
@@ -10,18 +10,6 @@
false
-
-
- 6.0.0
- 4.6.3
- 6.1.3
-
-
- 1.1.1
- 4.5.5
- 6.0.1
-
-
9.0.0-beta.24223.1
diff --git a/eng/common/core-templates/post-build/post-build.yml b/eng/common/core-templates/post-build/post-build.yml
index 9438429ca37..88806f1e508 100644
--- a/eng/common/core-templates/post-build/post-build.yml
+++ b/eng/common/core-templates/post-build/post-build.yml
@@ -206,7 +206,7 @@ stages:
displayName: Validate
inputs:
filePath: eng\common\sdk-task.ps1
- arguments: -task SigningValidation -restore -msbuildEngine vs
+ arguments: -task SigningValidation -restore
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts'
/p:SignCheckExclusionsFile='$(System.DefaultWorkingDirectory)/eng/SignCheckExclusionsFile.txt'
${{ parameters.signingValidationAdditionalParameters }}
diff --git a/src/Common/Internal/AssemblyResolution.cs b/src/Common/Internal/AssemblyResolution.cs
deleted file mode 100644
index caea03260c1..00000000000
--- a/src/Common/Internal/AssemblyResolution.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-#if NET472
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Reflection;
-using Microsoft.Build.Framework;
-using Microsoft.Build.Utilities;
-
-namespace Microsoft.DotNet
-{
- internal static class AssemblyResolution
- {
- internal static TaskLoggingHelper Log;
-
- public static void Initialize()
- {
- AppDomain.CurrentDomain.AssemblyResolve += AssemblyResolve;
- }
-
- private static Assembly AssemblyResolve(object sender, ResolveEventArgs args)
- {
- var name = new AssemblyName(args.Name);
-
- if (!name.Name.Equals("System.Collections.Immutable", StringComparison.OrdinalIgnoreCase))
- {
- return null;
- }
-
- var fullPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "System.Collections.Immutable.dll");
-
- Assembly sci;
- try
- {
- sci = Assembly.LoadFile(fullPath);
- }
- catch (Exception e)
- {
- Log?.LogWarning($"AssemblyResolve: exception while loading '{fullPath}': {e.Message}");
- return null;
- }
-
- if (name.Version <= sci.GetName().Version)
- {
- Log?.LogMessage(MessageImportance.Low, $"AssemblyResolve: loaded '{fullPath}' to {AppDomain.CurrentDomain.FriendlyName}");
- return sci;
- }
-
- return null;
- }
- }
-}
-
-#endif
diff --git a/src/Common/Internal/AssemblyResolver.cs b/src/Common/Internal/AssemblyResolver.cs
deleted file mode 100644
index d398408cc29..00000000000
--- a/src/Common/Internal/AssemblyResolver.cs
+++ /dev/null
@@ -1,110 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-#nullable disable
-
-using System;
-using System.Diagnostics;
-using System.IO;
-using System.Reflection;
-
-namespace Microsoft.Arcade.Common.Desktop
-{
- ///
- /// Used to enable app-local assembly unification.
- ///
- internal static class AssemblyResolver
- {
- static AssemblyResolver()
- {
- AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;
- }
-
- ///
- /// Call to enable the assembly resolver for the current AppDomain.
- ///
- public static void Enable()
- {
- // intentionally empty. This is just meant to ensure the static constructor
- // has run.
- }
-
- private static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
- {
- // apply any existing policy
- AssemblyName referenceName = new AssemblyName(AppDomain.CurrentDomain.ApplyPolicy(args.Name));
-
- string fileName = referenceName.Name + ".dll";
- string assemblyPath = null;
- string probingPath = null;
- Assembly assm = null;
-
- // look next to requesting assembly
- assemblyPath = args.RequestingAssembly?.Location;
- if (!String.IsNullOrEmpty(assemblyPath))
- {
- probingPath = Path.Combine(Path.GetDirectoryName(assemblyPath), fileName);
- Debug.WriteLine($"Considering {probingPath} based on RequestingAssembly");
- if (Probe(probingPath, referenceName.Version, out assm))
- {
- return assm;
- }
- }
-
- // look next to the executing assembly
- assemblyPath = Assembly.GetExecutingAssembly().Location;
- if (!String.IsNullOrEmpty(assemblyPath))
- {
- probingPath = Path.Combine(Path.GetDirectoryName(assemblyPath), fileName);
-
- Debug.WriteLine($"Considering {probingPath} based on ExecutingAssembly");
- if (Probe(probingPath, referenceName.Version, out assm))
- {
- return assm;
- }
- }
-
- // look in AppDomain base directory
- probingPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, fileName);
- Debug.WriteLine($"Considering {probingPath} based on BaseDirectory");
- if (Probe(probingPath, referenceName.Version, out assm))
- {
- return assm;
- }
-
- // look in current directory
- Debug.WriteLine($"Considering {fileName}");
- if (Probe(fileName, referenceName.Version, out assm))
- {
- return assm;
- }
-
- return null;
- }
-
- ///
- /// Considers a path to load for satisfying an assembly ref and loads it
- /// if the file exists and version is sufficient.
- ///
- /// Path to consider for load
- /// Minimum version to consider
- /// loaded assembly
- /// true if assembly was loaded
- private static bool Probe(string filePath, Version minimumVersion, out Assembly assembly)
- {
- if (File.Exists(filePath))
- {
- AssemblyName name = AssemblyName.GetAssemblyName(filePath);
-
- if (name.Version >= minimumVersion)
- {
- assembly = Assembly.Load(name);
- return true;
- }
- }
-
- assembly = null;
- return false;
- }
- }
-}
diff --git a/src/Common/Internal/BuildTask.Desktop.cs b/src/Common/Internal/BuildTask.Desktop.cs
deleted file mode 100644
index f71609229a9..00000000000
--- a/src/Common/Internal/BuildTask.Desktop.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-namespace Microsoft.Arcade.Common.Desktop
-{
- public partial class BuildTask
- {
- static BuildTask()
- {
- AssemblyResolver.Enable();
- }
- }
-}
diff --git a/src/Common/Microsoft.Arcade.Common/Command.cs b/src/Common/Microsoft.Arcade.Common/Command.cs
index 0ab31c5ad61..c7c1ef638dc 100644
--- a/src/Common/Microsoft.Arcade.Common/Command.cs
+++ b/src/Common/Microsoft.Arcade.Common/Command.cs
@@ -118,11 +118,7 @@ public ICommand WorkingDirectory(string projectDirectory)
public ICommand EnvironmentVariable(string name, string value)
{
-#if NET45
- _process.StartInfo.EnvironmentVariables[name] = value;
-#else
_process.StartInfo.Environment[name] = value;
-#endif
_process.StartInfo.UseShellExecute = false;
return this;
}
diff --git a/src/Common/Microsoft.Arcade.Common/MSBuildTaskBase.Desktop.cs b/src/Common/Microsoft.Arcade.Common/MSBuildTaskBase.Desktop.cs
deleted file mode 100644
index 39d999e8f92..00000000000
--- a/src/Common/Microsoft.Arcade.Common/MSBuildTaskBase.Desktop.cs
+++ /dev/null
@@ -1,14 +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 Microsoft.Arcade.Common.Desktop;
-
-namespace Microsoft.Arcade.Common
-{
- public partial class MSBuildTaskBase
- {
- static MSBuildTaskBase()
- {
- AssemblyResolver.Enable();
- }
- }
-}
diff --git a/src/Common/Microsoft.Arcade.Common/Microsoft.Arcade.Common.csproj b/src/Common/Microsoft.Arcade.Common/Microsoft.Arcade.Common.csproj
index b424f8055a3..fbc3b77904b 100644
--- a/src/Common/Microsoft.Arcade.Common/Microsoft.Arcade.Common.csproj
+++ b/src/Common/Microsoft.Arcade.Common/Microsoft.Arcade.Common.csproj
@@ -2,9 +2,8 @@
- $(BundledNETCoreAppTargetFramework);netstandard2.0;$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
true
- **/*.Desktop.*
@@ -13,14 +12,4 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/src/Common/Microsoft.Arcade.Test.Common/Microsoft.Arcade.Test.Common.csproj b/src/Common/Microsoft.Arcade.Test.Common/Microsoft.Arcade.Test.Common.csproj
index b66e45d28f6..53ed94d1db7 100644
--- a/src/Common/Microsoft.Arcade.Test.Common/Microsoft.Arcade.Test.Common.csproj
+++ b/src/Common/Microsoft.Arcade.Test.Common/Microsoft.Arcade.Test.Common.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
true
@@ -10,10 +10,6 @@
-
-
-
-
diff --git a/src/Microsoft.Cci.Extensions/Microsoft.Cci.Extensions.csproj b/src/Microsoft.Cci.Extensions/Microsoft.Cci.Extensions.csproj
index 99810d10ebd..3e834bcfe86 100644
--- a/src/Microsoft.Cci.Extensions/Microsoft.Cci.Extensions.csproj
+++ b/src/Microsoft.Cci.Extensions/Microsoft.Cci.Extensions.csproj
@@ -1,8 +1,7 @@
-
- $(BundledNETCoreAppTargetFramework);netstandard2.0;$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
true
true
true
@@ -20,16 +19,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj b/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj
index 3e229a4e501..861028474b9 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj
+++ b/src/Microsoft.DotNet.Arcade.Sdk/Microsoft.DotNet.Arcade.Sdk.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
true
true
@@ -26,11 +26,6 @@
-
-
-
-
-
@@ -47,13 +42,15 @@
PackagePath="tools\DefaultVersions.Generated.props" />
-
-
-
-
-
+
@@ -84,4 +81,14 @@
+
+
+
+
+
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs b/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs
index 9fe6fb49651..d76eb4aa53a 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs
+++ b/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs
@@ -128,7 +128,6 @@ private async Tasks.Task DownloadFromUriAsync(string uri) {
// on Mac if the endpoint is not available. This is only available on .NET Core, but has only been
// observed on Mac anyway.
-#if NET
using SocketsHttpHandler handler = new SocketsHttpHandler();
handler.SslOptions.CertificateChainPolicy = new X509ChainPolicy
{
@@ -151,9 +150,6 @@ private async Tasks.Task DownloadFromUriAsync(string uri) {
};
using (var httpClient = new HttpClient(handler))
-#else
- using (var httpClient = new HttpClient(new HttpClientHandler { CheckCertificateRevocationList = true }))
-#endif
{
httpClient.Timeout = TimeSpan.FromSeconds(TimeoutInSeconds);
try
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/src/GetLicenseFilePath.cs b/src/Microsoft.DotNet.Arcade.Sdk/src/GetLicenseFilePath.cs
index d195c79398e..a0abef70c0f 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/src/GetLicenseFilePath.cs
+++ b/src/Microsoft.DotNet.Arcade.Sdk/src/GetLicenseFilePath.cs
@@ -37,15 +37,6 @@ private void ExecuteImpl()
{
const string fileName = "license";
-#if NET472
- IEnumerable enumerateFiles(string extension)
- {
- var fileNameWithExtension = fileName + extension;
- return System.IO.Directory.EnumerateFiles(Directory, "*", SearchOption.TopDirectoryOnly)
- .Where(path => string.Equals(fileNameWithExtension, System.IO.Path.GetFileName(path), System.StringComparison.OrdinalIgnoreCase));
- }
-
-#else
var options = new EnumerationOptions
{
MatchCasing = MatchCasing.CaseInsensitive,
@@ -57,7 +48,7 @@ IEnumerable enumerateFiles(string extension)
IEnumerable enumerateFiles(string extension) =>
System.IO.Directory.EnumerateFileSystemEntries(Directory, fileName + extension, options);
-#endif
+
var matches =
(from extension in new[] { ".txt", ".md", "" }
from path in enumerateFiles(extension)
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/src/InstallDotNetCore.cs b/src/Microsoft.DotNet.Arcade.Sdk/src/InstallDotNetCore.cs
index d3ff77edbb5..28a937ef85b 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/src/InstallDotNetCore.cs
+++ b/src/Microsoft.DotNet.Arcade.Sdk/src/InstallDotNetCore.cs
@@ -16,15 +16,8 @@
namespace Microsoft.DotNet.Arcade.Sdk
{
-#if NET472
- [LoadInSeparateAppDomain]
- public class InstallDotNetCore : AppDomainIsolatedTask
- {
- static InstallDotNetCore() => AssemblyResolution.Initialize();
-#else
public class InstallDotNetCore : Microsoft.Build.Utilities.Task
{
-#endif
private static readonly char[] s_keyTrimChars = [ '$', '(', ')' ];
public string VersionsPropsPath { get; set; }
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/src/SetCorFlags.cs b/src/Microsoft.DotNet.Arcade.Sdk/src/SetCorFlags.cs
index 593ba369bc9..98525024117 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/src/SetCorFlags.cs
+++ b/src/Microsoft.DotNet.Arcade.Sdk/src/SetCorFlags.cs
@@ -12,15 +12,8 @@
namespace Microsoft.DotNet.Arcade.Sdk
{
-#if NET472
- [LoadInSeparateAppDomain]
- public class SetCorFlags : AppDomainIsolatedTask
- {
- static SetCorFlags() => AssemblyResolution.Initialize();
-#else
public class SetCorFlags : Microsoft.Build.Utilities.Task
{
-#endif
[Required]
public string FilePath { get; set; }
@@ -35,9 +28,6 @@ public class SetCorFlags : Microsoft.Build.Utilities.Task
public override bool Execute()
{
-#if NET472
- AssemblyResolution.Log = Log;
-#endif
try
{
ExecuteImpl();
@@ -45,9 +35,6 @@ public override bool Execute()
}
finally
{
-#if NET472
- AssemblyResolution.Log = null;
-#endif
}
}
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/src/Unsign.cs b/src/Microsoft.DotNet.Arcade.Sdk/src/Unsign.cs
index 934939e265d..f9c8bf00b2b 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/src/Unsign.cs
+++ b/src/Microsoft.DotNet.Arcade.Sdk/src/Unsign.cs
@@ -12,23 +12,13 @@
namespace Microsoft.DotNet.Arcade.Sdk
{
-#if NET472
- [LoadInSeparateAppDomain]
- public sealed class Unsign : AppDomainIsolatedTask
- {
- static Unsign() => AssemblyResolution.Initialize();
-#else
public class Unsign : Microsoft.Build.Utilities.Task
{
-#endif
[Required]
public string FilePath { get; set; }
public override bool Execute()
{
-#if NET472
- AssemblyResolution.Log = Log;
-#endif
try
{
ExecuteImpl();
@@ -36,9 +26,6 @@ public override bool Execute()
}
finally
{
-#if NET472
- AssemblyResolution.Log = null;
-#endif
}
}
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/BuildReleasePackages.targets b/src/Microsoft.DotNet.Arcade.Sdk/tools/BuildReleasePackages.targets
index 3feeaf2ea1d..048dcff3db1 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/BuildReleasePackages.targets
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/BuildReleasePackages.targets
@@ -2,11 +2,10 @@
- <_NuGetRepackAssembly Condition="'$(MSBuildRuntimeType)' != 'Core'">$(NuGetPackageRoot)microsoft.dotnet.nugetrepack.tasks\$(MicrosoftDotnetNuGetRepackTasksVersion)\tools\netframework\Microsoft.DotNet.NuGetRepack.Tasks.dll
- <_NuGetRepackAssembly Condition="'$(MSBuildRuntimeType)' == 'Core'">$(NuGetPackageRoot)microsoft.dotnet.nugetrepack.tasks\$(MicrosoftDotnetNuGetRepackTasksVersion)\tools\net\Microsoft.DotNet.NuGetRepack.Tasks.dll
+ <_NuGetRepackAssembly>$(NuGetPackageRoot)microsoft.dotnet.nugetrepack.tasks\$(MicrosoftDotnetNuGetRepackTasksVersion)\tools\net\Microsoft.DotNet.NuGetRepack.Tasks.dll
-
+
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/BuildTasks.props b/src/Microsoft.DotNet.Arcade.Sdk/tools/BuildTasks.props
index b2dcf8a2d5b..9a51d5b4cb9 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/BuildTasks.props
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/BuildTasks.props
@@ -1,9 +1,18 @@
+
+
+
+
+ $(BundledRuntimeIdentifierGraphFile)
+
+
- $(MSBuildThisFileDirectory)netframework\Microsoft.DotNet.Arcade.Sdk.dll
- $(MSBuildThisFileDirectory)net\Microsoft.DotNet.Arcade.Sdk.dll
+ $(MSBuildThisFileDirectory)net\Microsoft.DotNet.Arcade.Sdk.dll
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/GenerateChecksums.targets b/src/Microsoft.DotNet.Arcade.Sdk/tools/GenerateChecksums.targets
index b272e667b44..b625b3e70e9 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/GenerateChecksums.targets
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/GenerateChecksums.targets
@@ -1,7 +1,7 @@
-
+
-
+
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/InstallDotNetCore.targets b/src/Microsoft.DotNet.Arcade.Sdk/tools/InstallDotNetCore.targets
index c59c07cb980..71f9c832e6b 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/InstallDotNetCore.targets
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/InstallDotNetCore.targets
@@ -1,7 +1,7 @@
-
+
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/OptimizationData.targets b/src/Microsoft.DotNet.Arcade.Sdk/tools/OptimizationData.targets
index 17dc8a55daa..24ef2781aa1 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/OptimizationData.targets
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/OptimizationData.targets
@@ -13,9 +13,9 @@
OptimizeAssembly Set of assemblies to apply Partial NGEN optimization data to.
-->
-
-
-
+
+
+
$(IntermediateOutputPath)$(TargetFileName).pcbm
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/Publish.proj b/src/Microsoft.DotNet.Arcade.Sdk/tools/Publish.proj
index f56db0fa71d..44834f60188 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/Publish.proj
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/Publish.proj
@@ -34,7 +34,7 @@
-
+
-
+
$(BeforePack);_AddSourcePackageSourceLinkFile
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/RepositoryValidation.proj b/src/Microsoft.DotNet.Arcade.Sdk/tools/RepositoryValidation.proj
index ba32af54e3f..5efc4b438dd 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/RepositoryValidation.proj
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/RepositoryValidation.proj
@@ -8,8 +8,8 @@
-
-
+
+
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/CreateBaselineUpdatePR.proj b/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/CreateBaselineUpdatePR.proj
index 2687f94083a..c3c1920baaa 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/CreateBaselineUpdatePR.proj
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/CreateBaselineUpdatePR.proj
@@ -2,7 +2,7 @@
- $(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
Publish
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/PublishBuildAssets.proj b/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/PublishBuildAssets.proj
index 6fbe0aa5c73..851fbaaae10 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/PublishBuildAssets.proj
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/PublishBuildAssets.proj
@@ -19,7 +19,7 @@
- $(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
Publish
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/VisualStudio.BuildIbcTrainingSettings.proj b/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/VisualStudio.BuildIbcTrainingSettings.proj
index 3b423874bdb..cec7c2c0a5c 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/VisualStudio.BuildIbcTrainingSettings.proj
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/VisualStudio.BuildIbcTrainingSettings.proj
@@ -20,10 +20,10 @@
- <_VisualStudioBuildTasksAssembly>$(NuGetPackageRoot)microsoft.dotnet.build.tasks.visualstudio\$(MicrosoftDotNetBuildTasksVisualStudioVersion)\tools\netframework\Microsoft.DotNet.Build.Tasks.VisualStudio.dll
+ <_VisualStudioBuildTasksAssembly>$(NuGetPackageRoot)microsoft.dotnet.build.tasks.visualstudio\$(MicrosoftDotNetBuildTasksVisualStudioVersion)\tools\net\Microsoft.DotNet.Build.Tasks.VisualStudio.dll
-
+
<_OutputFilePath>$(VisualStudioSetupInsertionPath)OptProf\Training.runsettings
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/Sign.proj b/src/Microsoft.DotNet.Arcade.Sdk/tools/Sign.proj
index 45a0fec0e02..348bc33ac21 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/Sign.proj
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/Sign.proj
@@ -75,7 +75,6 @@
<_DotNetCorePath>$(DotNetTool)
-
-
+
net472
@@ -12,6 +12,9 @@
.NETFramework,Version=v4.7.2
$(BaseIntermediateOutputPath)
+ PackageReference
+ true
+
true
@@ -34,7 +37,7 @@
-
+
@@ -45,24 +48,23 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
@@ -97,10 +99,10 @@
-
+
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/Version.targets b/src/Microsoft.DotNet.Arcade.Sdk/tools/Version.targets
index 7dbd2411e9c..fab5620c279 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/Version.targets
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/Version.targets
@@ -8,7 +8,7 @@
SemanticVersioningV1 "true" if the Version needs to respect SemVer 1.0. Default is false, which means format following SemVer 2.0.
-->
-
+
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.AcquireOptimizationData.targets b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.AcquireOptimizationData.targets
index 9979a784c8c..33704816096 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.AcquireOptimizationData.targets
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.AcquireOptimizationData.targets
@@ -11,10 +11,10 @@
-->
- <_VisualStudioBuildTasksAssembly>$(NuGetPackageRoot)microsoft.dotnet.build.tasks.visualstudio\$(MicrosoftDotNetBuildTasksVisualStudioVersion)\tools\netframework\Microsoft.DotNet.Build.Tasks.VisualStudio.dll
+ <_VisualStudioBuildTasksAssembly>$(NuGetPackageRoot)microsoft.dotnet.build.tasks.visualstudio\$(MicrosoftDotNetBuildTasksVisualStudioVersion)\tools\net\Microsoft.DotNet.Build.Tasks.VisualStudio.dll
-
+
true
diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.BuildIbcTrainingInputs.targets b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.BuildIbcTrainingInputs.targets
index d9d6a384058..39949cff687 100644
--- a/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.BuildIbcTrainingInputs.targets
+++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/VisualStudio.BuildIbcTrainingInputs.targets
@@ -8,11 +8,11 @@
-->
- <_VisualStudioBuildTasksAssembly>$(NuGetPackageRoot)microsoft.dotnet.build.tasks.visualstudio\$(MicrosoftDotNetBuildTasksVisualStudioVersion)\tools\netframework\Microsoft.DotNet.Build.Tasks.VisualStudio.dll
+ <_VisualStudioBuildTasksAssembly>$(NuGetPackageRoot)microsoft.dotnet.build.tasks.visualstudio\$(MicrosoftDotNetBuildTasksVisualStudioVersion)\tools\net\Microsoft.DotNet.Build.Tasks.VisualStudio.dll
-
-
+
+
-
+
diff --git a/src/Microsoft.DotNet.ArcadeAzureIntegration/AzureCliCredentialWithAzNoUpdateWrapper.cs b/src/Microsoft.DotNet.ArcadeAzureIntegration/AzureCliCredentialWithAzNoUpdateWrapper.cs
index 1aab8408c4d..67a03e88b10 100644
--- a/src/Microsoft.DotNet.ArcadeAzureIntegration/AzureCliCredentialWithAzNoUpdateWrapper.cs
+++ b/src/Microsoft.DotNet.ArcadeAzureIntegration/AzureCliCredentialWithAzNoUpdateWrapper.cs
@@ -1,8 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-#if !NET472_OR_GREATER
-
#nullable enable
using System;
@@ -135,5 +133,3 @@ public override async ValueTask GetTokenAsync(TokenRequestContext r
return await _azureCliCredential.GetTokenAsync(requestContext, cancellationToken);
}
}
-
-#endif
diff --git a/src/Microsoft.DotNet.ArcadeAzureIntegration/DefaultIdentityTokenCredential.cs b/src/Microsoft.DotNet.ArcadeAzureIntegration/DefaultIdentityTokenCredential.cs
index 4d609d3e254..0447dbc83b7 100644
--- a/src/Microsoft.DotNet.ArcadeAzureIntegration/DefaultIdentityTokenCredential.cs
+++ b/src/Microsoft.DotNet.ArcadeAzureIntegration/DefaultIdentityTokenCredential.cs
@@ -1,8 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-#if !NET472_OR_GREATER
-
#nullable enable
using System;
@@ -174,5 +172,3 @@ private static TokenCredential CreateAvailableTokenCredential(DefaultIdentityTok
return null;
}
}
-
-#endif
diff --git a/src/Microsoft.DotNet.ArcadeAzureIntegration/DefaultIdentityTokenCredentialOptions.cs b/src/Microsoft.DotNet.ArcadeAzureIntegration/DefaultIdentityTokenCredentialOptions.cs
index eb91074ff15..c854367692a 100644
--- a/src/Microsoft.DotNet.ArcadeAzureIntegration/DefaultIdentityTokenCredentialOptions.cs
+++ b/src/Microsoft.DotNet.ArcadeAzureIntegration/DefaultIdentityTokenCredentialOptions.cs
@@ -1,8 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-#if !NET472_OR_GREATER
-
#nullable enable
namespace Microsoft.DotNet.ArcadeAzureIntegration;
@@ -15,5 +13,3 @@ public class DefaultIdentityTokenCredentialOptions
public bool ExcludeAzureCliCredential { get; set; }
public bool DisableShortCache { get; set; }
}
-
-#endif
diff --git a/src/Microsoft.DotNet.ArcadeAzureIntegration/Microsoft.DotNet.ArcadeAzureIntegration.csproj b/src/Microsoft.DotNet.ArcadeAzureIntegration/Microsoft.DotNet.ArcadeAzureIntegration.csproj
index 87cc43f833b..7f4307d5dfe 100644
--- a/src/Microsoft.DotNet.ArcadeAzureIntegration/Microsoft.DotNet.ArcadeAzureIntegration.csproj
+++ b/src/Microsoft.DotNet.ArcadeAzureIntegration/Microsoft.DotNet.ArcadeAzureIntegration.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
diff --git a/src/Microsoft.DotNet.ArcadeAzureIntegration/TokenCredentialShortCache.cs b/src/Microsoft.DotNet.ArcadeAzureIntegration/TokenCredentialShortCache.cs
index 2f263ece4d6..f84ca91e78e 100644
--- a/src/Microsoft.DotNet.ArcadeAzureIntegration/TokenCredentialShortCache.cs
+++ b/src/Microsoft.DotNet.ArcadeAzureIntegration/TokenCredentialShortCache.cs
@@ -1,8 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-#if !NET472_OR_GREATER
-
#nullable enable
using System;
@@ -89,5 +87,3 @@ public async ValueTask GetToken(TokenRequestContext requestContext,
}
}
}
-
-#endif
diff --git a/src/Microsoft.DotNet.ArcadeLogging/Microsoft.DotNet.ArcadeLogging.csproj b/src/Microsoft.DotNet.ArcadeLogging/Microsoft.DotNet.ArcadeLogging.csproj
index 7885d488608..8ba87b42b34 100644
--- a/src/Microsoft.DotNet.ArcadeLogging/Microsoft.DotNet.ArcadeLogging.csproj
+++ b/src/Microsoft.DotNet.ArcadeLogging/Microsoft.DotNet.ArcadeLogging.csproj
@@ -1,6 +1,7 @@
+
$(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
diff --git a/src/Microsoft.DotNet.Baselines.Tasks/Microsoft.DotNet.Baselines.Tasks.csproj b/src/Microsoft.DotNet.Baselines.Tasks/Microsoft.DotNet.Baselines.Tasks.csproj
index ba56e706a4b..87b04d4e9e8 100644
--- a/src/Microsoft.DotNet.Baselines.Tasks/Microsoft.DotNet.Baselines.Tasks.csproj
+++ b/src/Microsoft.DotNet.Baselines.Tasks/Microsoft.DotNet.Baselines.Tasks.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework)
+ $(BundledNETCoreAppTargetFramework)
true
true
true
diff --git a/src/Microsoft.DotNet.Baselines.Tasks/build/Microsoft.DotNet.Baselines.Tasks.targets b/src/Microsoft.DotNet.Baselines.Tasks/build/Microsoft.DotNet.Baselines.Tasks.targets
index 192e58623d0..2158a0e36bd 100644
--- a/src/Microsoft.DotNet.Baselines.Tasks/build/Microsoft.DotNet.Baselines.Tasks.targets
+++ b/src/Microsoft.DotNet.Baselines.Tasks/build/Microsoft.DotNet.Baselines.Tasks.targets
@@ -1,10 +1,10 @@
+
- <_MicrosoftDotNetBaselinesTasksDir>$(MSBuildThisFileDirectory)../tools/netframework/
- <_MicrosoftDotNetBaselinesTasksDir Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)../tools/net/
+ <_MicrosoftDotNetBaselinesTasksDir>$(MSBuildThisFileDirectory)../tools/net/
-
+
-
diff --git a/src/Microsoft.DotNet.Build.Tasks.Archives/Microsoft.DotNet.Build.Tasks.Archives.csproj b/src/Microsoft.DotNet.Build.Tasks.Archives/Microsoft.DotNet.Build.Tasks.Archives.csproj
index de3990f63a0..ec8a65ac470 100644
--- a/src/Microsoft.DotNet.Build.Tasks.Archives/Microsoft.DotNet.Build.Tasks.Archives.csproj
+++ b/src/Microsoft.DotNet.Build.Tasks.Archives/Microsoft.DotNet.Build.Tasks.Archives.csproj
@@ -1,10 +1,9 @@
-
+
$(BundledNETCoreAppTargetFramework)
true
true
- false
Targets for producing an archive of file outputs.
MSBuildSdk
diff --git a/src/Microsoft.DotNet.Build.Tasks.Feed/Microsoft.DotNet.Build.Tasks.Feed.csproj b/src/Microsoft.DotNet.Build.Tasks.Feed/Microsoft.DotNet.Build.Tasks.Feed.csproj
index 2b5b69c27b9..adb882fef1f 100644
--- a/src/Microsoft.DotNet.Build.Tasks.Feed/Microsoft.DotNet.Build.Tasks.Feed.csproj
+++ b/src/Microsoft.DotNet.Build.Tasks.Feed/Microsoft.DotNet.Build.Tasks.Feed.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
true
false
This package provides support for publishing assets to appropriate channels.
@@ -23,7 +23,7 @@
-
+
@@ -36,14 +36,9 @@
-
-
-
-
-
@@ -52,8 +47,8 @@
-
-
+
+
diff --git a/src/Microsoft.DotNet.Build.Tasks.Feed/build/Microsoft.DotNet.Build.Tasks.Feed.targets b/src/Microsoft.DotNet.Build.Tasks.Feed/build/Microsoft.DotNet.Build.Tasks.Feed.targets
index 9b7f8eb8a71..05579d54b39 100644
--- a/src/Microsoft.DotNet.Build.Tasks.Feed/build/Microsoft.DotNet.Build.Tasks.Feed.targets
+++ b/src/Microsoft.DotNet.Build.Tasks.Feed/build/Microsoft.DotNet.Build.Tasks.Feed.targets
@@ -43,15 +43,14 @@
-->
- <_MicrosoftDotNetBuildTasksFeedTaskDir>$(MSBuildThisFileDirectory)../tools/netframework/
- <_MicrosoftDotNetBuildTasksFeedTaskDir Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)../tools/net/
+ <_MicrosoftDotNetBuildTasksFeedTaskDir>$(MSBuildThisFileDirectory)../tools/net/
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifest.cs b/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifest.cs
index 480d5985395..b3429746a2e 100644
--- a/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifest.cs
+++ b/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifest.cs
@@ -389,11 +389,7 @@ internal PublishArtifactsInManifestBase ConstructPublishingV3Task(BuildModel bui
SkipSafetyChecks = this.SkipSafetyChecks,
AkaMSClientId = this.AkaMSClientId,
AkaMSClientCertificate = !string.IsNullOrEmpty(AkaMSClientCertificate) ?
-#if NET9_0_OR_GREATER
X509CertificateLoader.LoadPkcs12(Convert.FromBase64String(File.ReadAllText(AkaMSClientCertificate)), password: null) : null,
-#else
- new X509Certificate2(Convert.FromBase64String(File.ReadAllText(AkaMSClientCertificate))) : null,
-#endif
AkaMSCreatedBy = this.AkaMSCreatedBy,
AkaMSGroupOwner = this.AkaMSGroupOwner,
AkaMsOwners = this.AkaMsOwners,
@@ -439,11 +435,7 @@ internal PublishArtifactsInManifestBase ConstructPublishingV4Task(BuildModel bui
SkipSafetyChecks = this.SkipSafetyChecks,
AkaMSClientId = this.AkaMSClientId,
AkaMSClientCertificate = !string.IsNullOrEmpty(AkaMSClientCertificate) ?
-#if NET9_0_OR_GREATER
X509CertificateLoader.LoadPkcs12(Convert.FromBase64String(File.ReadAllText(AkaMSClientCertificate)), password: null) : null,
-#else
- new X509Certificate2(Convert.FromBase64String(File.ReadAllText(AkaMSClientCertificate))) : null,
-#endif
AkaMSCreatedBy = this.AkaMSCreatedBy,
AkaMSGroupOwner = this.AkaMSGroupOwner,
AkaMsOwners = this.AkaMsOwners,
diff --git a/src/Microsoft.DotNet.Build.Tasks.Feed/src/common/NativeMethods.cs b/src/Microsoft.DotNet.Build.Tasks.Feed/src/common/NativeMethods.cs
index 7eaa76db72a..daaa643f1b5 100644
--- a/src/Microsoft.DotNet.Build.Tasks.Feed/src/common/NativeMethods.cs
+++ b/src/Microsoft.DotNet.Build.Tasks.Feed/src/common/NativeMethods.cs
@@ -3,30 +3,18 @@
using System;
using System.Runtime.InteropServices;
-#if NET
using System.Runtime.InteropServices.Marshalling;
-#endif
namespace Microsoft.DotNet.Build.Tasks.Feed
{
internal partial class NativeMethods
{
-#if NET
[LibraryImport("kernel32.dll", EntryPoint = "CreateHardLinkW", SetLastError = true, StringMarshalling = StringMarshalling.Utf16)]
[return: MarshalAs(UnmanagedType.Bool)]
internal static partial bool CreateHardLink(string newFileName, string exitingFileName, IntPtr securityAttributes);
-#else
- [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
- internal static extern bool CreateHardLink(string newFileName, string exitingFileName, IntPtr securityAttributes);
-#endif
-#if NET
[LibraryImport("libc", SetLastError = true, StringMarshalling = StringMarshalling.Utf16)]
internal static partial int link(string oldpath, string newpath);
-#else
- [DllImport("libc", SetLastError = true)]
- internal static extern int link(string oldpath, string newpath);
-#endif
internal static bool MakeHardLink(string newFileName, string exitingFileName, ref string errorMessage)
{
diff --git a/src/Microsoft.DotNet.Build.Tasks.Installers/Microsoft.DotNet.Build.Tasks.Installers.csproj b/src/Microsoft.DotNet.Build.Tasks.Installers/Microsoft.DotNet.Build.Tasks.Installers.csproj
index 6b74f8a4092..dd3b461547d 100644
--- a/src/Microsoft.DotNet.Build.Tasks.Installers/Microsoft.DotNet.Build.Tasks.Installers.csproj
+++ b/src/Microsoft.DotNet.Build.Tasks.Installers/Microsoft.DotNet.Build.Tasks.Installers.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
true
true
true
@@ -39,12 +39,6 @@
Pack="true" />
-
-
-
-
-
-
diff --git a/src/Microsoft.DotNet.Build.Tasks.Installers/build/Microsoft.DotNet.Build.Tasks.Installers.props b/src/Microsoft.DotNet.Build.Tasks.Installers/build/Microsoft.DotNet.Build.Tasks.Installers.props
index f5996ed1b57..29db77597b8 100644
--- a/src/Microsoft.DotNet.Build.Tasks.Installers/build/Microsoft.DotNet.Build.Tasks.Installers.props
+++ b/src/Microsoft.DotNet.Build.Tasks.Installers/build/Microsoft.DotNet.Build.Tasks.Installers.props
@@ -2,8 +2,7 @@
- $(MSBuildThisFileDirectory)..\tools\net\Microsoft.DotNet.Build.Tasks.Installers.dll
- $(MSBuildThisFileDirectory)..\tools\netframework\Microsoft.DotNet.Build.Tasks.Installers.dll
+ $(MSBuildThisFileDirectory)..\tools\net\Microsoft.DotNet.Build.Tasks.Installers.dll
$(MSBuildThisFileDirectory)
diff --git a/src/Microsoft.DotNet.Build.Tasks.Installers/build/acquisition/acquire-wix/acquire-wix.proj b/src/Microsoft.DotNet.Build.Tasks.Installers/build/acquisition/acquire-wix/acquire-wix.proj
index 5b3076d67cf..fa456d1efc3 100644
--- a/src/Microsoft.DotNet.Build.Tasks.Installers/build/acquisition/acquire-wix/acquire-wix.proj
+++ b/src/Microsoft.DotNet.Build.Tasks.Installers/build/acquisition/acquire-wix/acquire-wix.proj
@@ -1,7 +1,7 @@
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Microsoft.DotNet.Build.Tasks.Installers/build/wix5/wix.targets b/src/Microsoft.DotNet.Build.Tasks.Installers/build/wix5/wix.targets
index 131b6db1556..b1068fc86d1 100644
--- a/src/Microsoft.DotNet.Build.Tasks.Installers/build/wix5/wix.targets
+++ b/src/Microsoft.DotNet.Build.Tasks.Installers/build/wix5/wix.targets
@@ -1,7 +1,7 @@
-
+
+
+
+
+
+ $(BundledRuntimeIdentifierGraphFile)
+
+
true
diff --git a/src/Microsoft.DotNet.Build.Tasks.Packaging/src/build/Packaging.common.targets b/src/Microsoft.DotNet.Build.Tasks.Packaging/src/build/Packaging.common.targets
index cddcada8201..0705afd686a 100644
--- a/src/Microsoft.DotNet.Build.Tasks.Packaging/src/build/Packaging.common.targets
+++ b/src/Microsoft.DotNet.Build.Tasks.Packaging/src/build/Packaging.common.targets
@@ -6,8 +6,7 @@
- $(MSBuildThisFileDirectory)../tools/net/
- $(MSBuildThisFileDirectory)../tools/netframework/
+ $(MSBuildThisFileDirectory)../tools/net/
$(MSBuildThisFileDirectory)runtime.json
$([MSBuild]::NormalizeDirectory('$(BaseOutputPath)', 'pkg'))
@@ -19,32 +18,32 @@
$(PackageTargetRuntimeSuffix)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Microsoft.DotNet.Build.Tasks.Packaging/tests/Microsoft.DotNet.Build.Tasks.Packaging.Tests.csproj b/src/Microsoft.DotNet.Build.Tasks.Packaging/tests/Microsoft.DotNet.Build.Tasks.Packaging.Tests.csproj
index c720887c2dc..6f48692c843 100644
--- a/src/Microsoft.DotNet.Build.Tasks.Packaging/tests/Microsoft.DotNet.Build.Tasks.Packaging.Tests.csproj
+++ b/src/Microsoft.DotNet.Build.Tasks.Packaging/tests/Microsoft.DotNet.Build.Tasks.Packaging.Tests.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
false
$(NoWarn);xUnit2013
diff --git a/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/ChooseBestP2PTargetFrameworkTask.cs b/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/ChooseBestP2PTargetFrameworkTask.cs
index d98db883c6b..764fc9b52b8 100644
--- a/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/ChooseBestP2PTargetFrameworkTask.cs
+++ b/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/ChooseBestP2PTargetFrameworkTask.cs
@@ -111,15 +111,9 @@ public override bool Execute()
private static bool TryParseFramework(string targetFrameworkMoniker, string? targetPlatformMoniker, string errorMessage, Log logger, out NuGetFramework nugetFramework)
{
// Check if we have a long name.
-#if NETFRAMEWORK || NETSTANDARD
- nugetFramework = targetFrameworkMoniker.Contains(",")
- ? NuGetFramework.ParseComponents(targetFrameworkMoniker, targetPlatformMoniker)
- : NuGetFramework.Parse(targetFrameworkMoniker);
-#else
nugetFramework = targetFrameworkMoniker.Contains(',', System.StringComparison.Ordinal)
? NuGetFramework.ParseComponents(targetFrameworkMoniker, targetPlatformMoniker)
: NuGetFramework.Parse(targetFrameworkMoniker);
-#endif
// validate framework
if (nugetFramework.IsUnsupported)
diff --git a/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/Microsoft.DotNet.Build.Tasks.TargetFramework.csproj b/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/Microsoft.DotNet.Build.Tasks.TargetFramework.csproj
index f36ed9c9d5d..b8d5a7ec9fb 100644
--- a/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/Microsoft.DotNet.Build.Tasks.TargetFramework.csproj
+++ b/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/Microsoft.DotNet.Build.Tasks.TargetFramework.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
true
true
Configuration system for cross-targeting projects.
@@ -13,11 +13,6 @@
-
-
-
-
-
diff --git a/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/build/BinPlace.targets b/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/build/BinPlace.targets
index e9be0f36a70..68f71d4c843 100644
--- a/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/build/BinPlace.targets
+++ b/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/build/BinPlace.targets
@@ -1,7 +1,7 @@
-
+
true
diff --git a/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/build/Microsoft.DotNet.Build.Tasks.TargetFramework.props b/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/build/Microsoft.DotNet.Build.Tasks.TargetFramework.props
index d0180c04142..b548e38c216 100644
--- a/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/build/Microsoft.DotNet.Build.Tasks.TargetFramework.props
+++ b/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/build/Microsoft.DotNet.Build.Tasks.TargetFramework.props
@@ -2,8 +2,7 @@
- ..\tools\net\Microsoft.DotNet.Build.Tasks.TargetFramework.dll
- ..\tools\netframework\Microsoft.DotNet.Build.Tasks.TargetFramework.dll
+ ..\tools\net\Microsoft.DotNet.Build.Tasks.TargetFramework.dll
diff --git a/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/build/Microsoft.DotNet.Build.Tasks.TargetFramework.targets b/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/build/Microsoft.DotNet.Build.Tasks.TargetFramework.targets
index ccf6b879ff0..19f7f200885 100644
--- a/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/build/Microsoft.DotNet.Build.Tasks.TargetFramework.targets
+++ b/src/Microsoft.DotNet.Build.Tasks.TargetFramework/src/build/Microsoft.DotNet.Build.Tasks.TargetFramework.targets
@@ -1,7 +1,7 @@
-
+
-
+
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
Templating task package
true
true
diff --git a/src/Microsoft.DotNet.Build.Tasks.Templating/src/build/Microsoft.DotNet.Build.Tasks.Templating.props b/src/Microsoft.DotNet.Build.Tasks.Templating/src/build/Microsoft.DotNet.Build.Tasks.Templating.props
index 358cf132b71..c2835e13031 100644
--- a/src/Microsoft.DotNet.Build.Tasks.Templating/src/build/Microsoft.DotNet.Build.Tasks.Templating.props
+++ b/src/Microsoft.DotNet.Build.Tasks.Templating/src/build/Microsoft.DotNet.Build.Tasks.Templating.props
@@ -2,10 +2,9 @@
- $(MSBuildThisFileDirectory)..\tools\net\Microsoft.DotNet.Build.Tasks.Templating.dll
- $(MSBuildThisFileDirectory)..\tools\netframework\Microsoft.DotNet.Build.Tasks.Templating.dll
+ $(MSBuildThisFileDirectory)..\tools\net\Microsoft.DotNet.Build.Tasks.Templating.dll
-
+
diff --git a/src/Microsoft.DotNet.Build.Tasks.Templating/test/Microsoft.DotNet.Build.Tasks.Templating.Tests.csproj b/src/Microsoft.DotNet.Build.Tasks.Templating/test/Microsoft.DotNet.Build.Tasks.Templating.Tests.csproj
index 5c224371b15..a1264fe5b35 100644
--- a/src/Microsoft.DotNet.Build.Tasks.Templating/test/Microsoft.DotNet.Build.Tasks.Templating.Tests.csproj
+++ b/src/Microsoft.DotNet.Build.Tasks.Templating/test/Microsoft.DotNet.Build.Tasks.Templating.Tests.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
diff --git a/src/Microsoft.DotNet.Build.Tasks.VisualStudio.Tests/Microsoft.DotNet.Build.Tasks.VisualStudio.Tests.csproj b/src/Microsoft.DotNet.Build.Tasks.VisualStudio.Tests/Microsoft.DotNet.Build.Tasks.VisualStudio.Tests.csproj
index e276d85658e..7f4630f73fc 100644
--- a/src/Microsoft.DotNet.Build.Tasks.VisualStudio.Tests/Microsoft.DotNet.Build.Tasks.VisualStudio.Tests.csproj
+++ b/src/Microsoft.DotNet.Build.Tasks.VisualStudio.Tests/Microsoft.DotNet.Build.Tasks.VisualStudio.Tests.csproj
@@ -1,12 +1,13 @@
- $(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
+
diff --git a/src/Microsoft.DotNet.Build.Tasks.VisualStudio.Tests/OptProf/GenerateTrainingInputFilesTests.cs b/src/Microsoft.DotNet.Build.Tasks.VisualStudio.Tests/OptProf/GenerateTrainingInputFilesTests.cs
index 3b001e11895..483994409c2 100644
--- a/src/Microsoft.DotNet.Build.Tasks.VisualStudio.Tests/OptProf/GenerateTrainingInputFilesTests.cs
+++ b/src/Microsoft.DotNet.Build.Tasks.VisualStudio.Tests/OptProf/GenerateTrainingInputFilesTests.cs
@@ -130,7 +130,7 @@ private static void CreateVsix(string vsixPath, string manifestContent)
}
}
- [Fact]
+ [WindowsOnlyFact]
public void Execute()
{
var temp = Path.GetTempPath();
@@ -182,7 +182,7 @@ public void Execute()
""RelativeInstallationPath"": ""Common7\\IDE\\PrivateAssemblies\\System.Collections.Immutable.dll"",
""InstrumentationArguments"": ""/ExeConfig:\""%VisualStudio.InstallationUnderTest.Path%\\Common7\\IDE\\vsn.exe\""""
}
-", json);
+", json, ignoreLineEndingDifferences: true);
JObject.Parse(json);
@@ -193,7 +193,7 @@ public void Execute()
""RelativeInstallationPath"": ""MSBuild\\15.0\\Bin\\Roslyn\\System.Collections.Immutable.dll"",
""InstrumentationArguments"": ""/ExeConfig:\""%VisualStudio.InstallationUnderTest.Path%\\Common7\\IDE\\zzz.exe\""""
}
-", json);
+", json, ignoreLineEndingDifferences: true);
JObject.Parse(json);
@@ -204,7 +204,7 @@ public void Execute()
""RelativeInstallationPath"": ""Common7\\IDE\\CommonExtensions\\Microsoft\\ManagedLanguages\\VBCSharp\\LanguageServices\\x\\y\\z\\Microsoft.CodeAnalysis.CSharp.dll"",
""InstrumentationArguments"": ""/ExeConfig:\""%VisualStudio.InstallationUnderTest.Path%\\Common7\\IDE\\vsn.exe\""""
}
-", json);
+", json, ignoreLineEndingDifferences: true);
JObject.Parse(json);
json = File.ReadAllText(Path.Combine(outputDir, @"TeamEng\Configurations\TeamEng.OptProfTest.vs_debugger_start_no_build_cs_scribble\xyzMicrosoft.CodeAnalysis.VisualBasic.0.IBC.json"));
@@ -214,7 +214,7 @@ public void Execute()
""RelativeInstallationPath"": ""Common7\\IDE\\CommonExtensions\\Microsoft\\ManagedLanguages\\VBCSharp\\LanguageServices\\x\\y\\z\\Microsoft.CodeAnalysis.VisualBasic.dll"",
""InstrumentationArguments"": ""/ExeConfig:\""%VisualStudio.InstallationUnderTest.Path%\\Common7\\IDE\\vsn.exe\""""
}
-", json);
+", json, ignoreLineEndingDifferences: true);
JObject.Parse(json);
Assert.True(result);
diff --git a/src/Microsoft.DotNet.Build.Tasks.VisualStudio.Tests/OptProf/GetRunSettingsSessionConfigurationTests.cs b/src/Microsoft.DotNet.Build.Tasks.VisualStudio.Tests/OptProf/GetRunSettingsSessionConfigurationTests.cs
index b042f2e5840..6e28e615327 100644
--- a/src/Microsoft.DotNet.Build.Tasks.VisualStudio.Tests/OptProf/GetRunSettingsSessionConfigurationTests.cs
+++ b/src/Microsoft.DotNet.Build.Tasks.VisualStudio.Tests/OptProf/GetRunSettingsSessionConfigurationTests.cs
@@ -439,7 +439,7 @@ public void Execute()
-FullyQualifiedName=DDRIT.RPS.CSharp.CSharpTest.EditingAndDesigner|FullyQualifiedName=VSPE.OptProfTests.vs_perf_designtime_ide_searchtest|FullyQualifiedName=VSPE.OptProfTests.vs_perf_designtime_editor_intellisense_globalcompletionlist_cs|FullyQualifiedName=VSPE.OptProfTests.vs_asl_cs_scenario|FullyQualifiedName=VSPE.OptProfTests.vs_ddbvtqa_vbwi|FullyQualifiedName=VSPE.OptProfTests.vs_asl_vb_scenario|FullyQualifiedName=VSPE.OptProfTests.vs_env_solution_createnewproject_vb_winformsapp|FullyQualifiedName=DDRIT.RPS.CSharp.CSharpTest.BuildAndDebugging", task.SessionConfiguration);
+FullyQualifiedName=DDRIT.RPS.CSharp.CSharpTest.EditingAndDesigner|FullyQualifiedName=VSPE.OptProfTests.vs_perf_designtime_ide_searchtest|FullyQualifiedName=VSPE.OptProfTests.vs_perf_designtime_editor_intellisense_globalcompletionlist_cs|FullyQualifiedName=VSPE.OptProfTests.vs_asl_cs_scenario|FullyQualifiedName=VSPE.OptProfTests.vs_ddbvtqa_vbwi|FullyQualifiedName=VSPE.OptProfTests.vs_asl_vb_scenario|FullyQualifiedName=VSPE.OptProfTests.vs_env_solution_createnewproject_vb_winformsapp|FullyQualifiedName=DDRIT.RPS.CSharp.CSharpTest.BuildAndDebugging", task.SessionConfiguration, ignoreLineEndingDifferences: true);
Assert.True(result);
@@ -454,8 +454,8 @@ public void Execute()
public void TestProductsOnly(string configJson, string expectedContainerString, string expectedTestCaseFilterString)
{
var (actualContainerString, actualTestCaseFilterString) = GetRunSettingsSessionConfiguration.GetTestContainersAndFilters(configJson, "config.json");
- Assert.Equal(expectedContainerString, actualContainerString);
- Assert.Equal(expectedTestCaseFilterString, actualTestCaseFilterString);
+ Assert.Equal(expectedContainerString, actualContainerString, ignoreLineEndingDifferences: true);
+ Assert.Equal(expectedTestCaseFilterString, actualTestCaseFilterString, ignoreLineEndingDifferences: true);
}
}
}
diff --git a/src/Microsoft.DotNet.Build.Tasks.VisualStudio/Microsoft.DotNet.Build.Tasks.VisualStudio.csproj b/src/Microsoft.DotNet.Build.Tasks.VisualStudio/Microsoft.DotNet.Build.Tasks.VisualStudio.csproj
index 410c5cee1c6..e7816e1e66b 100644
--- a/src/Microsoft.DotNet.Build.Tasks.VisualStudio/Microsoft.DotNet.Build.Tasks.VisualStudio.csproj
+++ b/src/Microsoft.DotNet.Build.Tasks.VisualStudio/Microsoft.DotNet.Build.Tasks.VisualStudio.csproj
@@ -1,7 +1,7 @@
- $(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
true
true
Arcade SDK build tasks for Visual Studio profile guided optimization training
@@ -12,9 +12,7 @@
-
-
-
+
diff --git a/src/Microsoft.DotNet.Build.Tasks.Workloads.Tests/Microsoft.DotNet.Build.Tasks.Workloads.Tests.csproj b/src/Microsoft.DotNet.Build.Tasks.Workloads.Tests/Microsoft.DotNet.Build.Tasks.Workloads.Tests.csproj
index aa0df007707..ddbfc1f02f7 100644
--- a/src/Microsoft.DotNet.Build.Tasks.Workloads.Tests/Microsoft.DotNet.Build.Tasks.Workloads.Tests.csproj
+++ b/src/Microsoft.DotNet.Build.Tasks.Workloads.Tests/Microsoft.DotNet.Build.Tasks.Workloads.Tests.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
@@ -14,10 +14,6 @@
-
-
-
-
@@ -36,10 +32,6 @@
-
-
-
-
diff --git a/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj b/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj
index c41a6f4b02b..3abcaf2fe62 100644
--- a/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj
+++ b/src/Microsoft.DotNet.Build.Tasks.Workloads/src/Microsoft.DotNet.Build.Tasks.Workloads.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
true
true
true
@@ -30,11 +30,6 @@
-
-
-
-
-
diff --git a/src/Microsoft.DotNet.Build.Tasks.Workloads/src/build/Microsoft.DotNet.Build.Tasks.Workloads.props b/src/Microsoft.DotNet.Build.Tasks.Workloads/src/build/Microsoft.DotNet.Build.Tasks.Workloads.props
index 6c44c02a663..3636efb67aa 100644
--- a/src/Microsoft.DotNet.Build.Tasks.Workloads/src/build/Microsoft.DotNet.Build.Tasks.Workloads.props
+++ b/src/Microsoft.DotNet.Build.Tasks.Workloads/src/build/Microsoft.DotNet.Build.Tasks.Workloads.props
@@ -2,11 +2,10 @@
- $(MSBuildThisFileDirectory)..\tools\net\Microsoft.DotNet.Build.Tasks.Workloads.dll
- $(MSBuildThisFileDirectory)..\tools\netframework\Microsoft.DotNet.Build.Tasks.Workloads.dll
+ $(MSBuildThisFileDirectory)..\tools\net\Microsoft.DotNet.Build.Tasks.Workloads.dll
-
-
+
+
diff --git a/src/Microsoft.DotNet.CMake.Sdk/Microsoft.DotNet.CMake.Sdk.csproj b/src/Microsoft.DotNet.CMake.Sdk/Microsoft.DotNet.CMake.Sdk.csproj
index 1fa866bf2a9..f1f1af126e1 100644
--- a/src/Microsoft.DotNet.CMake.Sdk/Microsoft.DotNet.CMake.Sdk.csproj
+++ b/src/Microsoft.DotNet.CMake.Sdk/Microsoft.DotNet.CMake.Sdk.csproj
@@ -1,14 +1,12 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
true
true
Common toolset for calling into CMake from MSBuild and easily reference native assets from managed projects.
MSBuildSdk
$(NoWarn);NU5128;CS0649
- true
- false
@@ -16,32 +14,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/Microsoft.DotNet.CMake.Sdk/build/Microsoft.DotNet.CMake.Sdk.targets b/src/Microsoft.DotNet.CMake.Sdk/build/Microsoft.DotNet.CMake.Sdk.targets
index b5a2339b04d..7680c206ab1 100644
--- a/src/Microsoft.DotNet.CMake.Sdk/build/Microsoft.DotNet.CMake.Sdk.targets
+++ b/src/Microsoft.DotNet.CMake.Sdk/build/Microsoft.DotNet.CMake.Sdk.targets
@@ -2,12 +2,11 @@
- $(MSBuildThisFileDirectory)..\tools\net\Microsoft.DotNet.CMake.Sdk.dll
- $(MSBuildThisFileDirectory)..\tools\netframework\Microsoft.DotNet.CMake.Sdk.dll
+ $(MSBuildThisFileDirectory)..\tools\net\Microsoft.DotNet.CMake.Sdk.dll
-
-
+
+
diff --git a/src/Microsoft.DotNet.CMake.Sdk/sdk/ProjectReference.targets b/src/Microsoft.DotNet.CMake.Sdk/sdk/ProjectReference.targets
index 4ef4ca1c9c5..5ba98a479a7 100644
--- a/src/Microsoft.DotNet.CMake.Sdk/sdk/ProjectReference.targets
+++ b/src/Microsoft.DotNet.CMake.Sdk/sdk/ProjectReference.targets
@@ -2,11 +2,10 @@
- $(MSBuildThisFileDirectory)..\tools\net\Microsoft.DotNet.CMake.Sdk.dll
- $(MSBuildThisFileDirectory)..\tools\netframework\Microsoft.DotNet.CMake.Sdk.dll
+ $(MSBuildThisFileDirectory)..\tools\net\Microsoft.DotNet.CMake.Sdk.dll
-
+
diff --git a/src/Microsoft.DotNet.Deployment.Tasks.Links/Microsoft.DotNet.Deployment.Tasks.Links.csproj b/src/Microsoft.DotNet.Deployment.Tasks.Links/Microsoft.DotNet.Deployment.Tasks.Links.csproj
index 6703679a878..2c6e5be3b50 100644
--- a/src/Microsoft.DotNet.Deployment.Tasks.Links/Microsoft.DotNet.Deployment.Tasks.Links.csproj
+++ b/src/Microsoft.DotNet.Deployment.Tasks.Links/Microsoft.DotNet.Deployment.Tasks.Links.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
true
true
Aka.ms link manager
@@ -20,8 +20,4 @@
-
-
-
-
diff --git a/src/Microsoft.DotNet.Deployment.Tasks.Links/build/Microsoft.DotNet.Deployment.Tasks.Links.props b/src/Microsoft.DotNet.Deployment.Tasks.Links/build/Microsoft.DotNet.Deployment.Tasks.Links.props
index 50e5224cdb5..5a0d42049fa 100644
--- a/src/Microsoft.DotNet.Deployment.Tasks.Links/build/Microsoft.DotNet.Deployment.Tasks.Links.props
+++ b/src/Microsoft.DotNet.Deployment.Tasks.Links/build/Microsoft.DotNet.Deployment.Tasks.Links.props
@@ -2,11 +2,9 @@
- $(MSBuildThisFileDirectory)..\tools\net\Microsoft.DotNet.Deployment.Tasks.Links.dll
- $(MSBuildThisFileDirectory)..\tools\netframework\Microsoft.DotNet.Deployment.Tasks.Links.dll
+ $(MSBuildThisFileDirectory)..\tools\net\Microsoft.DotNet.Deployment.Tasks.Links.dll
-
-
-
+
+
diff --git a/src/Microsoft.DotNet.Deployment.Tasks.Links/src/AkaMSLinksBase.cs b/src/Microsoft.DotNet.Deployment.Tasks.Links/src/AkaMSLinksBase.cs
index 77a64125333..704a968428d 100644
--- a/src/Microsoft.DotNet.Deployment.Tasks.Links/src/AkaMSLinksBase.cs
+++ b/src/Microsoft.DotNet.Deployment.Tasks.Links/src/AkaMSLinksBase.cs
@@ -24,11 +24,7 @@ protected AkaMSLinkManager CreateAkaMSLinksManager()
AkaMSLinkManager manager;
if (!string.IsNullOrEmpty(ClientCertificate))
{
-#if NET9_0_OR_GREATER
manager = new AkaMSLinkManager(ClientId, X509CertificateLoader.LoadPkcs12(Convert.FromBase64String(File.ReadAllText(ClientCertificate)), password: null), Tenant, Log);
-#else
- manager = new AkaMSLinkManager(ClientId, new X509Certificate2(Convert.FromBase64String(File.ReadAllText(ClientCertificate))), Tenant, Log);
-#endif
}
else if (!string.IsNullOrEmpty(ClientSecret))
{
diff --git a/src/Microsoft.DotNet.GenAPI/Microsoft.DotNet.GenAPI.csproj b/src/Microsoft.DotNet.GenAPI/Microsoft.DotNet.GenAPI.csproj
index 4def531e358..1fd26013eb6 100644
--- a/src/Microsoft.DotNet.GenAPI/Microsoft.DotNet.GenAPI.csproj
+++ b/src/Microsoft.DotNet.GenAPI/Microsoft.DotNet.GenAPI.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
true
MSBuildSdk
true
diff --git a/src/Microsoft.DotNet.GenAPI/build/Microsoft.DotNet.GenAPI.targets b/src/Microsoft.DotNet.GenAPI/build/Microsoft.DotNet.GenAPI.targets
index 38560453f49..dd8968a723a 100644
--- a/src/Microsoft.DotNet.GenAPI/build/Microsoft.DotNet.GenAPI.targets
+++ b/src/Microsoft.DotNet.GenAPI/build/Microsoft.DotNet.GenAPI.targets
@@ -2,8 +2,7 @@
- $(MSBuildThisFileDirectory)\..\tools\net\Microsoft.DotNet.GenAPI.dll
- $(MSBuildThisFileDirectory)\..\tools\netframework\Microsoft.DotNet.GenAPI.dll
+ $(MSBuildThisFileDirectory)\..\tools\net\Microsoft.DotNet.GenAPI.dll
@@ -25,7 +24,7 @@
-
+
diff --git a/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj b/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj
index 524ff0250ee..f4166824922 100644
--- a/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj
+++ b/src/Microsoft.DotNet.GenFacades/Microsoft.DotNet.GenFacades.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
MSBuildSdk
true
true
@@ -16,9 +16,4 @@
-
-
-
-
-
diff --git a/src/Microsoft.DotNet.GenFacades/RoslynBuildTask.cs b/src/Microsoft.DotNet.GenFacades/RoslynBuildTask.cs
index 42b61be4397..c96e5c37b26 100644
--- a/src/Microsoft.DotNet.GenFacades/RoslynBuildTask.cs
+++ b/src/Microsoft.DotNet.GenFacades/RoslynBuildTask.cs
@@ -6,9 +6,7 @@
using System;
using System.IO;
using System.Reflection;
-#if NETCOREAPP
using System.Runtime.Loader;
-#endif
namespace Microsoft.DotNet.Build.Tasks
{
@@ -19,40 +17,24 @@ public abstract partial class RoslynBuildTask : BuildTask
public override bool Execute()
{
-#if NETCOREAPP
AssemblyLoadContext currentContext = AssemblyLoadContext.GetLoadContext(Assembly.GetExecutingAssembly())!;
currentContext.Resolving += ResolverForRoslyn;
-#else
- AppDomain.CurrentDomain.AssemblyResolve += ResolverForRoslyn;
-#endif
try
{
return ExecuteCore();
}
finally
{
-#if NETCOREAPP
currentContext.Resolving -= ResolverForRoslyn;
-#else
- AppDomain.CurrentDomain.AssemblyResolve -= ResolverForRoslyn;
-#endif
}
}
public abstract bool ExecuteCore();
-#if NETCOREAPP
private Assembly ResolverForRoslyn(AssemblyLoadContext context, AssemblyName assemblyName)
{
return LoadRoslyn(assemblyName, path => context.LoadFromAssemblyPath(path));
}
-#else
- private Assembly ResolverForRoslyn(object sender, ResolveEventArgs args)
- {
- AssemblyName name = new(args.Name);
- return LoadRoslyn(name, path => Assembly.LoadFrom(path));
- }
-#endif
private Assembly LoadRoslyn(AssemblyName name, Func loadFromPath)
{
diff --git a/src/Microsoft.DotNet.GenFacades/build/Microsoft.DotNet.GenFacades.ClearVersion.targets b/src/Microsoft.DotNet.GenFacades/build/Microsoft.DotNet.GenFacades.ClearVersion.targets
index 34b4f7787b4..22620a07d9f 100644
--- a/src/Microsoft.DotNet.GenFacades/build/Microsoft.DotNet.GenFacades.ClearVersion.targets
+++ b/src/Microsoft.DotNet.GenFacades/build/Microsoft.DotNet.GenFacades.ClearVersion.targets
@@ -1,7 +1,7 @@
-
+
diff --git a/src/Microsoft.DotNet.GenFacades/build/Microsoft.DotNet.GenFacades.NotSupported.targets b/src/Microsoft.DotNet.GenFacades/build/Microsoft.DotNet.GenFacades.NotSupported.targets
index 86ead85a490..46a061c0f5a 100644
--- a/src/Microsoft.DotNet.GenFacades/build/Microsoft.DotNet.GenFacades.NotSupported.targets
+++ b/src/Microsoft.DotNet.GenFacades/build/Microsoft.DotNet.GenFacades.NotSupported.targets
@@ -1,7 +1,7 @@
-
+
AddGenFacadeNotSupportedCompileItem;$(CoreCompileDependsOn)
diff --git a/src/Microsoft.DotNet.GenFacades/build/Microsoft.DotNet.GenFacades.PartialFacadeSource.targets b/src/Microsoft.DotNet.GenFacades/build/Microsoft.DotNet.GenFacades.PartialFacadeSource.targets
index 5a1c6439a83..df655759d85 100644
--- a/src/Microsoft.DotNet.GenFacades/build/Microsoft.DotNet.GenFacades.PartialFacadeSource.targets
+++ b/src/Microsoft.DotNet.GenFacades/build/Microsoft.DotNet.GenFacades.PartialFacadeSource.targets
@@ -1,7 +1,7 @@
-
+
ReferencePath
diff --git a/src/Microsoft.DotNet.GenFacades/build/Microsoft.DotNet.GenFacades.targets b/src/Microsoft.DotNet.GenFacades/build/Microsoft.DotNet.GenFacades.targets
index 0d0215d40ac..20656c4312b 100644
--- a/src/Microsoft.DotNet.GenFacades/build/Microsoft.DotNet.GenFacades.targets
+++ b/src/Microsoft.DotNet.GenFacades/build/Microsoft.DotNet.GenFacades.targets
@@ -2,8 +2,7 @@
- $(MSBuildThisFileDirectory)..\tools\net\Microsoft.DotNet.GenFacades.dll
- $(MSBuildThisFileDirectory)..\tools\netframework\Microsoft.DotNet.GenFacades.dll
+ $(MSBuildThisFileDirectory)..\tools\net\Microsoft.DotNet.GenFacades.dll
diff --git a/src/Microsoft.DotNet.Git.IssueManager/src/Clients/AzureDevOpsClient.cs b/src/Microsoft.DotNet.Git.IssueManager/src/Clients/AzureDevOpsClient.cs
deleted file mode 100644
index 69261ed743b..00000000000
--- a/src/Microsoft.DotNet.Git.IssueManager/src/Clients/AzureDevOpsClient.cs
+++ /dev/null
@@ -1,86 +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 Newtonsoft.Json;
-using System;
-using System.Linq;
-using System.Net.Http;
-using System.Net.Http.Headers;
-using System.Text;
-using System.Text.RegularExpressions;
-using System.Threading.Tasks;
-
-namespace Microsoft.DotNet.Git.IssueManager.Clients
-{
- static class AzureDevOpsClient
- {
- private static readonly Regex RepositoryUriPattern = new Regex(
- @"^https://dev\.azure\.com\/(?[a-zA-Z0-9]+)/(?[a-zA-Z0-9-]+)/_git/(?[a-zA-Z0-9-\\.]+)");
-
- private static readonly Regex LegacyRepositoryUriPattern = new Regex(
- @"^https://(?[a-zA-Z0-9]+)\.visualstudio\.com/(?[a-zA-Z0-9-]+)/_git/(?[a-zA-Z0-9-\.]+)");
-
- private const string DefaultApiVersion = "5.0";
-
- public static async Task GetCommitAuthorAsync(
- string repositoryUrl,
- string commit,
- string personalAccessToken)
- {
- (string accountName, string projectName, string repoName) = ParseRepoUri(repositoryUrl);
-
- using (HttpClient httpClient = GetHttpClient(accountName, projectName, personalAccessToken))
- {
- HttpRequestMessage getMessage = new HttpRequestMessage(HttpMethod.Get, $"_apis/git/repositories/{repoName}/commits?searchCriteria.ids={commit}");
- HttpResponseMessage response = await httpClient.SendAsync(getMessage);
-
- response.EnsureSuccessStatusCode();
-
- AzureDevOpsCommit commitResponse = JsonConvert.DeserializeObject(await response.Content.ReadAsStringAsync());
-
- if (commitResponse == null)
- {
- throw new Exception($"No commit with id {commit} found in '{repositoryUrl}'");
- }
-
- return $"Azure DevOps user: {commitResponse.Value.First().Author.Name}";
- }
- }
-
- private static HttpClient GetHttpClient(string accountName, string projectName, string personalAccessToken)
- {
- HttpClient client = new HttpClient(new HttpClientHandler { CheckCertificateRevocationList = true })
- {
- BaseAddress = new Uri($"https://dev.azure.com/{accountName}/{projectName}/")
- };
-
- client.DefaultRequestHeaders.Add(
- "Accept",
- $"application/json;api-version={DefaultApiVersion}");
- client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(
- "Basic",
- Convert.ToBase64String(Encoding.ASCII.GetBytes(string.Format("{0}:{1}", "", personalAccessToken))));
-
- return client;
- }
-
- private static (string accountName, string projectName, string repoName) ParseRepoUri(string repositoryUri)
- {
- Match m = RepositoryUriPattern.Match(repositoryUri);
- if (!m.Success)
- {
- m = LegacyRepositoryUriPattern.Match(repositoryUri);
- if (!m.Success)
- {
- throw new ArgumentException(
- "Repository URI should be in the form https://dev.azure.com/:account/:project/_git/:repo or " +
- "https://:account.visualstudio.com/:project/_git/:repo");
- }
- }
-
- return (m.Groups["account"].Value,
- m.Groups["project"].Value,
- m.Groups["repo"].Value);
- }
- }
-}
diff --git a/src/Microsoft.DotNet.Git.IssueManager/src/Clients/GitHubClient.cs b/src/Microsoft.DotNet.Git.IssueManager/src/Clients/GitHubClient.cs
deleted file mode 100644
index 438eb49763e..00000000000
--- a/src/Microsoft.DotNet.Git.IssueManager/src/Clients/GitHubClient.cs
+++ /dev/null
@@ -1,112 +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 Octokit;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.RegularExpressions;
-using System.Threading.Tasks;
-using Microsoft.DotNet.Git.IssueManager.Helpers;
-
-namespace Microsoft.DotNet.Git.IssueManager.Clients
-{
- static class GitHubClient
- {
- public static async Task GetCommitAuthorAsync(
- string repositoryUrl,
- string commit,
- string personalAccessToken)
- {
- (string owner, string repoName) = ParseRepoUri(repositoryUrl);
-
- Octokit.GitHubClient client = new Octokit.GitHubClient(new ProductHeaderValue("assets-publisher"));
- Credentials tokenAuth = new Credentials(personalAccessToken);
- client.Credentials = tokenAuth;
-
- GitHubCommit commitInfo = await client.Repository.Commit.Get(owner, repoName, commit);
-
- while (commitInfo.Author.Type == "Bot")
- {
- if (!commitInfo.Parents.Any()) break;
- commit = commitInfo.Parents.First().Sha;
- commitInfo = await client.Repository.Commit.Get(owner, repoName, commit);
- }
-
- return $"@{commitInfo.Author.Login}";
- }
-
- public static async Task CreateNewIssueAsync(
- string repositoryUrl,
- string issueTitle,
- string issueDescription,
- string personalAccessToken,
- int? milestone = null,
- IEnumerable labels = null,
- IEnumerable assignees = null)
- {
- (string owner, string repoName) = ParseRepoUri(repositoryUrl);
-
- Octokit.GitHubClient client = new Octokit.GitHubClient(new ProductHeaderValue("assets-publisher"));
- Credentials tokenAuth = new Credentials(personalAccessToken);
- client.Credentials = tokenAuth;
-
- NewIssue issueToBeCreated = new NewIssue(issueTitle)
- {
- Body = issueDescription,
- Milestone = milestone
- };
-
- if (labels is not null)
- {
- issueToBeCreated.Labels.AddRange(labels);
- }
-
- if (assignees is not null)
- {
- issueToBeCreated.Assignees.AddRange(assignees);
- }
-
- Issue createdIssue = await client.Issue.Create(owner, repoName, issueToBeCreated);
-
- return createdIssue.Number;
- }
-
- public static async Task CreateNewIssueCommentAsync(
- string repositoryUrl,
- int issueNumber,
- string comment,
- string personalAccessToken)
- {
- (string owner, string repoName) = ParseRepoUri(repositoryUrl);
-
- Octokit.GitHubClient client = new Octokit.GitHubClient(new ProductHeaderValue("assets-publisher"));
- Credentials tokenAuth = new Credentials(personalAccessToken);
- client.Credentials = tokenAuth;
-
- IssueComment createdComment = await client.Issue.Comment.Create(owner, repoName, issueNumber, comment);
-
- return createdComment.HtmlUrl;
- }
-
- ///
- /// Extracts the owner and repository name from .
- ///
- /// The repository URI.
- /// The owner and the repository name
- private static (string owner, string repositoryName) ParseRepoUri(string repositoryUri)
- {
- Regex repositoryUriPattern = new Regex(@"^/(?[^/]+)/(?[^/]+)/?$");
- Uri uri = new Uri(repositoryUri);
-
- Match match = repositoryUriPattern.Match(uri.AbsolutePath);
-
- if (!match.Success)
- {
- return default;
- }
-
- return (match.Groups["owner"].Value, match.Groups["repo"].Value);
- }
- }
-}
diff --git a/src/Microsoft.DotNet.Git.IssueManager/src/Helpers/CollectionExtensions.cs b/src/Microsoft.DotNet.Git.IssueManager/src/Helpers/CollectionExtensions.cs
deleted file mode 100644
index dfe6aa27d6e..00000000000
--- a/src/Microsoft.DotNet.Git.IssueManager/src/Helpers/CollectionExtensions.cs
+++ /dev/null
@@ -1,19 +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.Collections.Generic;
-using System.Collections.ObjectModel;
-
-namespace Microsoft.DotNet.Git.IssueManager.Helpers
-{
- internal static class CollectionExtensions
- {
- public static void AddRange(this Collection collection, IEnumerable items)
- {
- foreach (T item in items)
- {
- collection.Add(item);
- }
- }
- }
-}
diff --git a/src/Microsoft.DotNet.Git.IssueManager/src/Helpers/RepositoryHelper.cs b/src/Microsoft.DotNet.Git.IssueManager/src/Helpers/RepositoryHelper.cs
deleted file mode 100644
index aeb18c58877..00000000000
--- a/src/Microsoft.DotNet.Git.IssueManager/src/Helpers/RepositoryHelper.cs
+++ /dev/null
@@ -1,104 +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 Microsoft.DotNet.Git.IssueManager.Clients;
-using System;
-using System.Collections.Generic;
-using System.Threading.Tasks;
-
-namespace Microsoft.DotNet.Git.IssueManager.Helpers
-{
- static class RepositoryHelper
- {
- public static async Task GetCommitAuthorAsync(
- string repositoryUrl,
- string commit,
- string gitHubPersonalAccessToken,
- string azureDevOpsPersonalAccessToken)
- {
- if (Uri.TryCreate(repositoryUrl, UriKind.Absolute, out Uri parsedUri))
- {
- if (parsedUri.Host == "github.com")
- {
- if (string.IsNullOrEmpty(gitHubPersonalAccessToken))
- {
- throw new ArgumentException("A GitHub personal access token is needed for this operation.");
- }
-
- return await GitHubClient.GetCommitAuthorAsync(repositoryUrl, commit, gitHubPersonalAccessToken);
- }
-
- if (string.IsNullOrEmpty(azureDevOpsPersonalAccessToken))
- {
- throw new ArgumentException("An Azure DevOps personal access token is needed for this operation.");
- }
-
- return await AzureDevOpsClient.GetCommitAuthorAsync(repositoryUrl, commit, azureDevOpsPersonalAccessToken);
- }
-
- throw new InvalidCastException($"'{parsedUri}' is not a valid URI");
- }
-
- public static async Task CreateNewIssueAsync(
- string repositoryUrl,
- string issueTitle,
- string issueDescription,
- string gitHubPersonalAccessToken,
- int? milestone = null,
- IEnumerable labels = null,
- IEnumerable assignees = null)
- {
- if (Uri.TryCreate(repositoryUrl, UriKind.Absolute, out Uri parsedUri))
- {
- if (parsedUri.Host == "github.com")
- {
- if (string.IsNullOrEmpty(gitHubPersonalAccessToken))
- {
- throw new ArgumentException("A GitHub personal access token is needed for this operation.");
- }
-
- return await GitHubClient.CreateNewIssueAsync(
- repositoryUrl,
- issueTitle,
- issueDescription,
- gitHubPersonalAccessToken,
- milestone,
- labels,
- assignees);
- }
-
- throw new NotImplementedException("Creating issues is not currently supported for an Azure DevOps repo.");
- }
-
- throw new InvalidCastException($"'{parsedUri}' is not a valid URI");
- }
-
- public static async Task CreateNewIssueCommentAsync(
- string repositoryUrl,
- int issueNumber,
- string comment,
- string gitHubPersonalAccessToken)
- {
- if (Uri.TryCreate(repositoryUrl, UriKind.Absolute, out Uri parsedUri))
- {
- if (parsedUri.Host == "github.com")
- {
- if (string.IsNullOrEmpty(gitHubPersonalAccessToken))
- {
- throw new ArgumentException("A GitHub personal access token is needed for this operation.");
- }
-
- return await GitHubClient.CreateNewIssueCommentAsync(
- repositoryUrl,
- issueNumber,
- comment,
- gitHubPersonalAccessToken);
- }
-
- throw new NotImplementedException("Creating comments is not currently supported for an Azure DevOps repo.");
- }
-
- throw new InvalidCastException($"'{parsedUri}' is not a valid URI");
- }
- }
-}
diff --git a/src/Microsoft.DotNet.Git.IssueManager/src/IssueManager.cs b/src/Microsoft.DotNet.Git.IssueManager/src/IssueManager.cs
deleted file mode 100644
index f0bfce1ea7b..00000000000
--- a/src/Microsoft.DotNet.Git.IssueManager/src/IssueManager.cs
+++ /dev/null
@@ -1,91 +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 Microsoft.DotNet.Git.IssueManager.Helpers;
-using System;
-using System.Collections.Generic;
-using System.Threading.Tasks;
-
-namespace Microsoft.DotNet.Git.IssueManager
-{
- public class IssueManager
- {
- public string GitHubPersonalAccessToken { get; set; }
-
- public string AzureDevOpsPersonalAccessToken { get; set; }
-
- public IssueManager(
- string gitHubPersonalAccessToken = null,
- string azureDevOpsPersonalAccessToken = null)
- {
- GitHubPersonalAccessToken = gitHubPersonalAccessToken;
- AzureDevOpsPersonalAccessToken = azureDevOpsPersonalAccessToken;
- }
-
- ///
- /// Gets the author of a commit from a repo+commit
- ///
- /// The repository URL
- /// The commit SHA.
- /// In GitHub returns the handle, in AzDO returns the full name.
- public async Task GetCommitAuthorAsync(string repositoryUrl, string commit)
- {
- if (string.IsNullOrEmpty(repositoryUrl))
- {
- throw new ArgumentException(nameof(repositoryUrl));
- }
-
- if (string.IsNullOrEmpty(commit))
- {
- throw new ArgumentException(nameof(commit));
- }
-
- return await RepositoryHelper.GetCommitAuthorAsync(repositoryUrl, commit, GitHubPersonalAccessToken, AzureDevOpsPersonalAccessToken);
-
- }
-
- ///
- /// Creates a new GitHub issue.
- ///
- /// Repository URL where to create the issue.
- /// Title of the issue.
- /// Description of the issue.
- ///
- public async Task CreateNewIssueAsync(
- string repositoryUrl,
- string issueTitle,
- string issueDescription,
- int? milestone = null,
- IEnumerable labels = null,
- IEnumerable assignees = null)
- {
- return await RepositoryHelper.CreateNewIssueAsync(
- repositoryUrl,
- issueTitle,
- issueDescription,
- GitHubPersonalAccessToken,
- milestone,
- labels,
- assignees);
- }
-
- ///
- /// Creates a new comment on a GitHub issue.
- ///
- /// Repository URL where to create the issue.
- /// Title of the issue.
- /// Description of the issue.
- ///
- public async Task CreateNewIssueCommentAsync(
- string repositoryUrl,
- int issueNumber,
- string comment)
- {
- return await RepositoryHelper.CreateNewIssueCommentAsync(
- repositoryUrl,
- issueNumber,
- comment,
- GitHubPersonalAccessToken);
- }
- }
-}
diff --git a/src/Microsoft.DotNet.Git.IssueManager/src/Microsoft.DotNet.Git.IssueManager.csproj b/src/Microsoft.DotNet.Git.IssueManager/src/Microsoft.DotNet.Git.IssueManager.csproj
deleted file mode 100644
index 07472d5b491..00000000000
--- a/src/Microsoft.DotNet.Git.IssueManager/src/Microsoft.DotNet.Git.IssueManager.csproj
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
- $(NetMinimum);$(NetFrameworkMinimum)
- false
- true
- true
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/Microsoft.DotNet.Git.IssueManager/src/Models/AzureDevOpsCommit.cs b/src/Microsoft.DotNet.Git.IssueManager/src/Models/AzureDevOpsCommit.cs
deleted file mode 100644
index 5180373b656..00000000000
--- a/src/Microsoft.DotNet.Git.IssueManager/src/Models/AzureDevOpsCommit.cs
+++ /dev/null
@@ -1,27 +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;
-using System.Collections.Generic;
-
-namespace Microsoft.DotNet.Git.IssueManager
-{
- public class AzureDevOpsCommit
- {
- public List Value { get; set; }
- }
-
- public class Value
- {
- public Author Author { get; set; }
- }
-
- public class Author
- {
- public string Name { get; set; }
-
- public string Email { get; set; }
-
- public DateTime Date { get; set; }
- }
-}
diff --git a/src/Microsoft.DotNet.Helix/Client/CSharp/Microsoft.DotNet.Helix.Client.csproj b/src/Microsoft.DotNet.Helix/Client/CSharp/Microsoft.DotNet.Helix.Client.csproj
index fca5ae5caa9..061f83a5238 100644
--- a/src/Microsoft.DotNet.Helix/Client/CSharp/Microsoft.DotNet.Helix.Client.csproj
+++ b/src/Microsoft.DotNet.Helix/Client/CSharp/Microsoft.DotNet.Helix.Client.csproj
@@ -2,7 +2,7 @@
- $(BundledNETCoreAppTargetFramework);netstandard2.0;$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
true
This package provides access to the Helix Api located at https://helix.dot.net/
https://helix.dot.net/api/openapi.json
@@ -17,17 +17,8 @@
-
-
-
-
-
-
-
-
-
diff --git a/src/Microsoft.DotNet.Helix/Client/CSharp/generated-code/HelixApi.cs b/src/Microsoft.DotNet.Helix/Client/CSharp/generated-code/HelixApi.cs
index 3739b4d5d67..e03da99984b 100644
--- a/src/Microsoft.DotNet.Helix/Client/CSharp/generated-code/HelixApi.cs
+++ b/src/Microsoft.DotNet.Helix/Client/CSharp/generated-code/HelixApi.cs
@@ -333,9 +333,7 @@ public RestApiException(Request request, Response response, string responseConte
Response = new ResponseWrapper(response, responseContent);
}
-#if NET
[Obsolete]
-#endif
protected RestApiException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
@@ -345,9 +343,7 @@ protected RestApiException(SerializationInfo info, StreamingContext context)
Response = JsonConvert.DeserializeObject(responseString, SerializerSettings);
}
-#if NET
[Obsolete]
-#endif
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
if (info == null)
@@ -375,18 +371,14 @@ public RestApiException(Request request, Response response, string responseConte
Body = body;
}
-#if NET
[Obsolete]
-#endif
protected RestApiException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
Body = JsonConvert.DeserializeObject(info.GetString("Body"));
}
-#if NET
[Obsolete]
-#endif
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
if (info == null)
diff --git a/src/Microsoft.DotNet.Helix/JobSender/Microsoft.DotNet.Helix.JobSender.csproj b/src/Microsoft.DotNet.Helix/JobSender/Microsoft.DotNet.Helix.JobSender.csproj
index d8bedd4c469..acb482b56fa 100644
--- a/src/Microsoft.DotNet.Helix/JobSender/Microsoft.DotNet.Helix.JobSender.csproj
+++ b/src/Microsoft.DotNet.Helix/JobSender/Microsoft.DotNet.Helix.JobSender.csproj
@@ -1,8 +1,7 @@
-
- $(BundledNETCoreAppTargetFramework);netstandard2.0;$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
true
Microsoft.DotNet.Helix.Client
This package provides a simple API for constructing and sending jobs to the Helix Api
@@ -18,15 +17,8 @@
-
-
-
-
-
-
-
diff --git a/src/Microsoft.DotNet.Helix/Sdk/AzureDevOpsTask.cs b/src/Microsoft.DotNet.Helix/Sdk/AzureDevOpsTask.cs
index a102acb64dc..e6e2b759a9c 100644
--- a/src/Microsoft.DotNet.Helix/Sdk/AzureDevOpsTask.cs
+++ b/src/Microsoft.DotNet.Helix/Sdk/AzureDevOpsTask.cs
@@ -62,7 +62,6 @@ private async Task ExecuteAsync()
// observed on Mac anyway.
// https://github.com/dotnet/dnceng/issues/6410
-#if NET
using SocketsHttpHandler handler = new SocketsHttpHandler
{
AllowAutoRedirect = false,
@@ -88,13 +87,6 @@ private async Task ExecuteAsync()
};
using (var client = new HttpClient(handler)
-#else
- using (var client = new HttpClient(new HttpClientHandler
- {
- AllowAutoRedirect = false,
- CheckCertificateRevocationList = true,
- })
-#endif
{
DefaultRequestHeaders =
{
diff --git a/src/Microsoft.DotNet.Helix/Sdk/BaseTask.Desktop.cs b/src/Microsoft.DotNet.Helix/Sdk/BaseTask.Desktop.cs
deleted file mode 100644
index 9d6c80c8af3..00000000000
--- a/src/Microsoft.DotNet.Helix/Sdk/BaseTask.Desktop.cs
+++ /dev/null
@@ -1,15 +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 Microsoft.Arcade.Common.Desktop;
-
-namespace Microsoft.DotNet.Helix
-{
- public partial class BaseTask
- {
- static BaseTask()
- {
- AssemblyResolver.Enable();
- }
- }
-}
diff --git a/src/Microsoft.DotNet.Helix/Sdk/FindDotNetCliPackage.cs b/src/Microsoft.DotNet.Helix/Sdk/FindDotNetCliPackage.cs
index 76a6faa1848..59723ce43c2 100644
--- a/src/Microsoft.DotNet.Helix/Sdk/FindDotNetCliPackage.cs
+++ b/src/Microsoft.DotNet.Helix/Sdk/FindDotNetCliPackage.cs
@@ -60,7 +60,6 @@ public class FindDotNetCliPackage : MSBuildTaskBase
public override void ConfigureServices(IServiceCollection collection)
{
-#if NET
var socketsHandler = new SocketsHttpHandler
{
AllowAutoRedirect = true,
@@ -85,9 +84,7 @@ public override void ConfigureServices(IServiceCollection collection)
VerificationTimeIgnored = true,
};
_httpMessageHandler = socketsHandler;
-#else
- _httpMessageHandler = new HttpClientHandler { CheckCertificateRevocationList = true };
-#endif
+
collection.TryAddSingleton(_httpMessageHandler);
collection.TryAddSingleton(Log);
}
diff --git a/src/Microsoft.DotNet.Helix/Sdk/Microsoft.DotNet.Helix.Sdk.csproj b/src/Microsoft.DotNet.Helix/Sdk/Microsoft.DotNet.Helix.Sdk.csproj
index a43a644e3a2..db4179e9718 100644
--- a/src/Microsoft.DotNet.Helix/Sdk/Microsoft.DotNet.Helix.Sdk.csproj
+++ b/src/Microsoft.DotNet.Helix/Sdk/Microsoft.DotNet.Helix.Sdk.csproj
@@ -1,10 +1,12 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
MSBuildSdk
true
- **/*.Desktop.*
+ false
+
+ true
@@ -14,13 +16,8 @@
-
-
-
-
+
@@ -29,12 +26,6 @@
-
-
-
-
-
-
-
-
- $(MSBuildThisFileDirectory)net/Microsoft.DotNet.Helix.Sdk.dll
- $(MSBuildThisFileDirectory)netframework/Microsoft.DotNet.Helix.Sdk.dll
+
+
+
+
+ $(BundledRuntimeIdentifierGraphFile)
+ $(MSBuildThisFileDirectory)net/Microsoft.DotNet.Helix.Sdk.dll
+ AssemblyTaskFactory
Helix
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Microsoft.DotNet.MacOsPkg/Cli/Microsoft.DotNet.MacOsPkg.Cli.csproj b/src/Microsoft.DotNet.MacOsPkg/Cli/Microsoft.DotNet.MacOsPkg.Cli.csproj
index abe85cd2c79..4491fe5ef78 100644
--- a/src/Microsoft.DotNet.MacOsPkg/Cli/Microsoft.DotNet.MacOsPkg.Cli.csproj
+++ b/src/Microsoft.DotNet.MacOsPkg/Cli/Microsoft.DotNet.MacOsPkg.Cli.csproj
@@ -1,9 +1,7 @@
-
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
Exe
enable
true
@@ -11,14 +9,11 @@
Arcade Build Tool MacOS Pkg
false
false
-
-
-
true
dotnet-macos-pkg
-
+
diff --git a/src/Microsoft.DotNet.NuGetRepack/tasks/Microsoft.DotNet.NuGetRepack.Tasks.csproj b/src/Microsoft.DotNet.NuGetRepack/tasks/Microsoft.DotNet.NuGetRepack.Tasks.csproj
index 06eeaeac895..28543282f6c 100644
--- a/src/Microsoft.DotNet.NuGetRepack/tasks/Microsoft.DotNet.NuGetRepack.Tasks.csproj
+++ b/src/Microsoft.DotNet.NuGetRepack/tasks/Microsoft.DotNet.NuGetRepack.Tasks.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
true
true
MSBuildSdk
@@ -13,17 +13,9 @@
-
-
-
-
-
-
-
-
diff --git a/src/Microsoft.DotNet.NuGetRepack/tasks/src/AssemblyResolution.cs b/src/Microsoft.DotNet.NuGetRepack/tasks/src/AssemblyResolution.cs
deleted file mode 100644
index 07d6a5d2fa6..00000000000
--- a/src/Microsoft.DotNet.NuGetRepack/tasks/src/AssemblyResolution.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-#if NET472
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Reflection;
-using Microsoft.Build.Framework;
-using Microsoft.Build.Utilities;
-
-namespace Microsoft.DotNet.Tools
-{
- internal static class AssemblyResolution
- {
- internal static TaskLoggingHelper Log;
-
- public static void Initialize()
- {
- AppDomain.CurrentDomain.AssemblyResolve += AssemblyResolve;
- }
-
- private static Assembly AssemblyResolve(object sender, ResolveEventArgs args)
- {
- var name = new AssemblyName(args.Name);
-
- if (!name.Name.Equals("System.Collections.Immutable", StringComparison.OrdinalIgnoreCase))
- {
- return null;
- }
-
- var fullPath = Path.Combine(Path.GetDirectoryName(typeof(AssemblyResolution).Assembly.Location), "System.Collections.Immutable.dll");
-
- Assembly sci;
- try
- {
- sci = Assembly.LoadFile(fullPath);
- }
- catch (Exception e)
- {
- Log?.LogWarning($"AssemblyResolve: exception while loading '{fullPath}': {e.Message}");
- return null;
- }
-
- if (name.Version <= sci.GetName().Version)
- {
- Log?.LogMessage(MessageImportance.Low, $"AssemblyResolve: loaded '{fullPath}' to {AppDomain.CurrentDomain.FriendlyName}");
- return sci;
- }
-
- return null;
- }
- }
-}
-
-#endif
diff --git a/src/Microsoft.DotNet.NuGetRepack/tasks/src/ReplacePackageParts.cs b/src/Microsoft.DotNet.NuGetRepack/tasks/src/ReplacePackageParts.cs
index 0d9d22ec6a5..e715f80a5d4 100644
--- a/src/Microsoft.DotNet.NuGetRepack/tasks/src/ReplacePackageParts.cs
+++ b/src/Microsoft.DotNet.NuGetRepack/tasks/src/ReplacePackageParts.cs
@@ -17,15 +17,8 @@ namespace Microsoft.DotNet.Tools
///
/// Replaces content of files in specified package with new content and updates version of the package.
///
-#if NET472
- [LoadInSeparateAppDomain]
- public sealed class ReplacePackageParts : AppDomainIsolatedTask
- {
- static ReplacePackageParts() => AssemblyResolution.Initialize();
-#else
public sealed class ReplacePackageParts : Microsoft.Build.Utilities.Task
{
-#endif
///
/// Full path to the package to process.
///
@@ -67,9 +60,6 @@ public sealed class ReplacePackageParts : Microsoft.Build.Utilities.Task
public override bool Execute()
{
-#if NET472
- AssemblyResolution.Log = Log;
-#endif
try
{
ExecuteImpl();
@@ -77,9 +67,6 @@ public override bool Execute()
}
finally
{
-#if NET472
- AssemblyResolution.Log = null;
-#endif
}
}
diff --git a/src/Microsoft.DotNet.NuGetRepack/tasks/src/UpdatePackageVersionTask.cs b/src/Microsoft.DotNet.NuGetRepack/tasks/src/UpdatePackageVersionTask.cs
index 8f922025d15..751c56330df 100644
--- a/src/Microsoft.DotNet.NuGetRepack/tasks/src/UpdatePackageVersionTask.cs
+++ b/src/Microsoft.DotNet.NuGetRepack/tasks/src/UpdatePackageVersionTask.cs
@@ -10,15 +10,8 @@
namespace Microsoft.DotNet.Tools
{
-#if NET472
- [LoadInSeparateAppDomain]
- public sealed class UpdatePackageVersionTask : AppDomainIsolatedTask
- {
- static UpdatePackageVersionTask() => AssemblyResolution.Initialize();
-#else
public class UpdatePackageVersionTask : Microsoft.Build.Utilities.Task
{
-#endif
public string VersionKind { get; set; }
[Required]
@@ -33,9 +26,6 @@ public class UpdatePackageVersionTask : Microsoft.Build.Utilities.Task
public override bool Execute()
{
-#if NET472
- AssemblyResolution.Log = Log;
-#endif
try
{
ExecuteImpl();
@@ -43,9 +33,6 @@ public override bool Execute()
}
finally
{
-#if NET472
- AssemblyResolution.Log = null;
-#endif
}
}
diff --git a/src/Microsoft.DotNet.PackageTesting.Tests/Microsoft.DotNet.PackageTesting.Tests.csproj b/src/Microsoft.DotNet.PackageTesting.Tests/Microsoft.DotNet.PackageTesting.Tests.csproj
index 97a9a4fbd62..6adcf914d2d 100644
--- a/src/Microsoft.DotNet.PackageTesting.Tests/Microsoft.DotNet.PackageTesting.Tests.csproj
+++ b/src/Microsoft.DotNet.PackageTesting.Tests/Microsoft.DotNet.PackageTesting.Tests.csproj
@@ -1,16 +1,12 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
-
-
-
-
diff --git a/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj b/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj
index 720a546c1ee..92fbc5f27c6 100644
--- a/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj
+++ b/src/Microsoft.DotNet.PackageTesting/Microsoft.DotNet.PackageTesting.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
MSBuildSdk
true
true
@@ -13,10 +13,6 @@
-
-
-
-
diff --git a/src/Microsoft.DotNet.PackageTesting/build/Microsoft.DotNet.PackageTesting.props b/src/Microsoft.DotNet.PackageTesting/build/Microsoft.DotNet.PackageTesting.props
index 9eabfb1d4c4..b59d540b0fb 100644
--- a/src/Microsoft.DotNet.PackageTesting/build/Microsoft.DotNet.PackageTesting.props
+++ b/src/Microsoft.DotNet.PackageTesting/build/Microsoft.DotNet.PackageTesting.props
@@ -2,12 +2,11 @@
- $(MSBuildThisFileDirectory)..\tools\netframework\Microsoft.DotNet.PackageTesting.dll
- $(MSBuildThisFileDirectory)..\tools\net\Microsoft.DotNet.PackageTesting.dll
+ $(MSBuildThisFileDirectory)..\tools\net\Microsoft.DotNet.PackageTesting.dll
-
-
-
+
+
+
diff --git a/src/Microsoft.DotNet.SharedFramework.Sdk/Microsoft.DotNet.SharedFramework.Sdk.csproj b/src/Microsoft.DotNet.SharedFramework.Sdk/Microsoft.DotNet.SharedFramework.Sdk.csproj
index faf9943e088..a0d9eca3837 100644
--- a/src/Microsoft.DotNet.SharedFramework.Sdk/Microsoft.DotNet.SharedFramework.Sdk.csproj
+++ b/src/Microsoft.DotNet.SharedFramework.Sdk/Microsoft.DotNet.SharedFramework.Sdk.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
true
true
Common toolset for building shared frameworks and framework packs.
@@ -30,12 +30,5 @@
-
-
-
-
-
-
-
diff --git a/src/Microsoft.DotNet.SharedFramework.Sdk/sdk/BuildTask.props b/src/Microsoft.DotNet.SharedFramework.Sdk/sdk/BuildTask.props
index 3314587321b..1d595945de5 100644
--- a/src/Microsoft.DotNet.SharedFramework.Sdk/sdk/BuildTask.props
+++ b/src/Microsoft.DotNet.SharedFramework.Sdk/sdk/BuildTask.props
@@ -4,13 +4,17 @@
-
- $(MSBuildThisFileDirectory)../tools/net/
- $(MSBuildThisFileDirectory)../tools/netframework/
-
-
+ $(MSBuildThisFileDirectory)../tools/net/
$(DotNetSharedFrameworkTaskDir)Microsoft.DotNet.SharedFramework.Sdk.dll
+
+
+
+
+
+
+
+
diff --git a/src/Microsoft.DotNet.SharedFramework.Sdk/targets/sharedfx.targets b/src/Microsoft.DotNet.SharedFramework.Sdk/targets/sharedfx.targets
index 3b2dbd56552..58f1d207ad2 100644
--- a/src/Microsoft.DotNet.SharedFramework.Sdk/targets/sharedfx.targets
+++ b/src/Microsoft.DotNet.SharedFramework.Sdk/targets/sharedfx.targets
@@ -181,7 +181,6 @@
-
@@ -305,7 +304,6 @@
Text="The following files are missing entries in the templated manifest:
@(_FilesMissingInManifestEntries, '
'). Add these file names with extensions to the 'PlatformManifestFileEntry' item group for the runtime pack and corresponding ref pack to include them in the platform manifest." />
-
@@ -335,7 +333,6 @@
If the chosen RID doesn't have a superset of files for all shipping platforms,
then you may have unexpected behavior when using the produced targeting pack.
-->
-
@@ -393,7 +390,6 @@
-
@@ -466,7 +462,6 @@
-
@@ -495,7 +490,6 @@
DependencyGraphFilePath="$(IntermediateOutputPath)assembly-graph.dgml" />
-
@@ -516,7 +510,6 @@
IgnoredTypes="@(IgnoredDuplicateType)" />
-
diff --git a/src/Microsoft.DotNet.SignTool.Tests/Microsoft.DotNet.SignTool.Tests.csproj b/src/Microsoft.DotNet.SignTool.Tests/Microsoft.DotNet.SignTool.Tests.csproj
index fc99185f50e..590f52be7b7 100644
--- a/src/Microsoft.DotNet.SignTool.Tests/Microsoft.DotNet.SignTool.Tests.csproj
+++ b/src/Microsoft.DotNet.SignTool.Tests/Microsoft.DotNet.SignTool.Tests.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
@@ -16,13 +16,6 @@
-
-
-
-
- <_TarToolPattern>@(_TarToolPath->'%(RootDir)%(Directory)')**\*.*
-
-
- <_TarToolFiles Include="$(_TarToolPattern)" />
-
-
-
-
-
-
@@ -80,4 +61,5 @@
+
diff --git a/src/Microsoft.DotNet.SignTool.Tests/SignToolTests.cs b/src/Microsoft.DotNet.SignTool.Tests/SignToolTests.cs
index f0d1e1ecfd7..20ad6487cab 100644
--- a/src/Microsoft.DotNet.SignTool.Tests/SignToolTests.cs
+++ b/src/Microsoft.DotNet.SignTool.Tests/SignToolTests.cs
@@ -246,9 +246,7 @@ public class SignToolTests : IDisposable
".py",
".pyd",
-#if !NETFRAMEWORK
".deb",
-#endif
};
public static IEnumerable
+
+
+
+
-
@@ -38,43 +40,6 @@
CopyToOutputDirectory="PreserveNewest" />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
/// Generate a hash for a string value using a given hash algorithm.
///
@@ -191,7 +188,6 @@ public static (int exitCode, string output, string error) RunBashCommand(string
}
}
-#if NET
///
/// Download the Microsoft and Azure Linux public keys and import them into the keyring.
///
@@ -239,7 +235,6 @@ public static TarEntry TryGetNextTarEntry(this TarReader reader)
return null;
}
}
-#endif
///
/// Parses a code signing timestamp string into a DateTime object.
diff --git a/src/SignCheck/Microsoft.SignCheck/Verification/AuthentiCode.cs b/src/SignCheck/Microsoft.SignCheck/Verification/AuthentiCode.cs
index 05a94a8ca89..3fef8aaed06 100644
--- a/src/SignCheck/Microsoft.SignCheck/Verification/AuthentiCode.cs
+++ b/src/SignCheck/Microsoft.SignCheck/Verification/AuthentiCode.cs
@@ -22,103 +22,6 @@ public static bool IsSigned(string path, SignatureVerificationResult svr, ISecur
public static IEnumerable GetTimestamps(string path, ISecurityInfoProvider securityInfoProvider) =>
string.IsNullOrEmpty(path) ? Enumerable.Empty() : GetTimestampsInternal(path, securityInfoProvider);
-#if NETFRAMEWORK
- private static bool IsSignedInternal(string path, SignatureVerificationResult svr, ISecurityInfoProvider securityInfoProvider)
- {
- WinTrustFileInfo fileInfo = new WinTrustFileInfo()
- {
- cbStruct = (uint)Marshal.SizeOf(typeof(WinTrustFileInfo)),
- pcwszFilePath = Path.GetFullPath(path),
- hFile = IntPtr.Zero,
- pgKnownSubject = IntPtr.Zero
- };
-
- WinTrustData data = new WinTrustData()
- {
- cbStruct = (uint)Marshal.SizeOf(typeof(WinTrustData)),
- dwProvFlags = 0,
- dwStateAction = Convert.ToUInt32(StateAction.WTD_STATEACTION_IGNORE),
- dwUIChoice = Convert.ToUInt32(UIChoice.WTD_UI_NONE),
- dwUIContext = 0,
- dwUnionChoice = Convert.ToUInt32(UnionChoice.WTD_CHOICE_FILE),
- fdwRevocationChecks = Convert.ToUInt32(RevocationChecks.WTD_REVOKE_NONE),
- hWVTStateData = IntPtr.Zero,
- pFile = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(WinTrustFileInfo))),
- pPolicyCallbackData = IntPtr.Zero,
- pSIPClientData = IntPtr.Zero,
- pwszURLReference = IntPtr.Zero
- };
-
- // Potential memory leak. Need to investigate
- Marshal.StructureToPtr(fileInfo, data.pFile, false);
-
- IntPtr pGuid = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Guid)));
- IntPtr pData = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(WinTrustData)));
- Marshal.StructureToPtr(data, pData, true);
- Marshal.StructureToPtr(WinTrust.WINTRUST_ACTION_GENERIC_VERIFY_V2, pGuid, true);
-
- uint hrresult = WinTrust.WinVerifyTrust(IntPtr.Zero, pGuid, pData);
-
- Marshal.FreeHGlobal(pGuid);
- Marshal.FreeHGlobal(pData);
-
- // Log non-zero HRESULTs
- if (hrresult != 0)
- {
- string errorMessage = new Win32Exception(Marshal.GetLastWin32Error()).Message;
- svr.AddDetail(DetailKeys.Error, String.Format(SignCheckResources.ErrorHResult, hrresult, errorMessage));
- }
-
- return hrresult == 0;
- }
-
- private static IEnumerable GetTimestampsInternal(string path, ISecurityInfoProvider securityInfoProvider)
- {
- int msgAndCertEncodingType;
- int msgContentType;
- int formatType;
-
- // NULL indicates that information is unneeded
- IntPtr certStore = IntPtr.Zero;
- IntPtr msg = IntPtr.Zero;
- IntPtr context = IntPtr.Zero;
-
- if (!WinCrypt.CryptQueryObject(
- WinCrypt.CERT_QUERY_OBJECT_FILE,
- Marshal.StringToHGlobalUni(path),
- WinCrypt.CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED | WinCrypt.CERT_QUERY_CONTENT_FLAG_PKCS7_UNSIGNED | WinCrypt.CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED_EMBED,
- WinCrypt.CERT_QUERY_FORMAT_FLAG_ALL,
- 0,
- out msgAndCertEncodingType,
- out msgContentType,
- out formatType,
- ref certStore,
- ref msg,
- ref context))
- {
- throw new Win32Exception(Marshal.GetLastWin32Error());
- }
-
- int cbData = 0;
-
- // Passing in NULL to pvData retrieves the size of the encoded message
- if (!WinCrypt.CryptMsgGetParam(msg, WinCrypt.CMSG_ENCODED_MESSAGE, 0, IntPtr.Zero, ref cbData))
- {
- throw new Win32Exception(Marshal.GetLastWin32Error());
- }
-
- byte[] vData = new byte[cbData];
- if (!WinCrypt.CryptMsgGetParam(msg, WinCrypt.CMSG_ENCODED_MESSAGE, 0, vData, ref cbData))
- {
- throw new Win32Exception(Marshal.GetLastWin32Error());
- }
-
- var signedCms = new SignedCms();
- signedCms.Decode(vData);
-
- return ExtractTimestamps(signedCms);
- }
-#else
private static bool IsSignedInternal(string path, SignatureVerificationResult svr, ISecurityInfoProvider securityInfoProvider)
{
if (securityInfoProvider == null)
@@ -181,7 +84,6 @@ private static SignerInfo GetPrimarySignerInfo(SignerInfoCollection signerInfos)
return signerInfos[0];
}
-#endif
private static IEnumerable ExtractTimestamps(SignedCms signedCms)
{
diff --git a/src/SignCheck/Microsoft.SignCheck/Verification/AuthentiCodeVerifier.cs b/src/SignCheck/Microsoft.SignCheck/Verification/AuthentiCodeVerifier.cs
index 83bc68bdf90..76c70060fa4 100644
--- a/src/SignCheck/Microsoft.SignCheck/Verification/AuthentiCodeVerifier.cs
+++ b/src/SignCheck/Microsoft.SignCheck/Verification/AuthentiCodeVerifier.cs
@@ -9,9 +9,7 @@
using System.Security.Cryptography;
using System.Security.Cryptography.Pkcs;
using Microsoft.SignCheck.Logging;
-#if NET
using System.Reflection.PortableExecutable;
-#endif
namespace Microsoft.SignCheck.Verification
{
@@ -90,7 +88,6 @@ public class AuthentiCodeSecurityInfoProvider : ISecurityInfoProvider
{
public SignedCms ReadSecurityInfo(string path)
{
-#if NET
using (FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read))
using (PEReader peReader = new PEReader(fs))
{
@@ -123,10 +120,8 @@ public SignedCms ReadSecurityInfo(string path)
return signedCms;
}
}
+
return null;
-#else
- throw new NotSupportedException("Not supported on .NET Framework");
-#endif
}
}
}
diff --git a/src/SignCheck/Microsoft.SignCheck/Verification/ExeVerifier.cs b/src/SignCheck/Microsoft.SignCheck/Verification/ExeVerifier.cs
index 8059917efac..6444c37e96e 100644
--- a/src/SignCheck/Microsoft.SignCheck/Verification/ExeVerifier.cs
+++ b/src/SignCheck/Microsoft.SignCheck/Verification/ExeVerifier.cs
@@ -5,9 +5,7 @@
using System.IO;
using System.Linq;
using Microsoft.SignCheck.Logging;
-#if NETFRAMEWORK
using Microsoft.Tools.WindowsInstallerXml;
-#endif
namespace Microsoft.SignCheck.Verification
{
@@ -26,7 +24,6 @@ public override SignatureVerificationResult VerifySignature(string path, string
if (VerifyRecursive)
{
-#if NETFRAMEWORK
if (PEHeader.ImageSectionHeaders.Select(s => s.SectionName).Contains(".wixburn"))
{
Log.WriteMessage(LogVerbosity.Diagnostic, SignCheckResources.DiagSectionHeader, ".wixburn");
@@ -57,9 +54,6 @@ public override SignatureVerificationResult VerifySignature(string path, string
unbinder.DeleteTempFiles();
}
}
-#else
- Log.WriteMessage(LogVerbosity.Normal, $"Unable to verify contents of '{svr.FullPath}' on .NET Core.");
-#endif
}
// TODO: Check for SFXCAB, IronMan, etc.
@@ -70,11 +64,9 @@ public override SignatureVerificationResult VerifySignature(string path, string
///
/// Event handler for WiX Burn to extract a bundle.
///
-#if NETFRAMEWORK
private void UnbinderEventHandler(object sender, MessageEventArgs e)
{
Log.WriteMessage(LogVerbosity.Detailed, String.Format("{0}|{1}|{2}|{3}", e.Id, e.Level, e.ResourceName, e.SourceLineNumbers));
}
-#endif
}
}
diff --git a/src/SignCheck/Microsoft.SignCheck/Verification/LZMAUtils.cs b/src/SignCheck/Microsoft.SignCheck/Verification/LZMAUtils.cs
index ca64cb8afff..2ede504db04 100644
--- a/src/SignCheck/Microsoft.SignCheck/Verification/LZMAUtils.cs
+++ b/src/SignCheck/Microsoft.SignCheck/Verification/LZMAUtils.cs
@@ -40,25 +40,9 @@ public static void Decompress(string sourceFile, string destinationFile)
}
}
-#if NET
private static void ReadExactly(FileStream stream, byte[] buffer, int offset, int count)
{
stream.ReadExactly(buffer, offset, count);
}
-#else
- private static void ReadExactly(FileStream stream, byte[] buffer, int offset, int count)
- {
- while (count > 0)
- {
- int read = stream.Read(buffer, offset, count);
- if (read <= 0)
- {
- throw new EndOfStreamException();
- }
- offset += read;
- count -= read;
- }
- }
-#endif
}
}
diff --git a/src/SignCheck/Microsoft.SignCheck/Verification/SignatureVerificationManager.cs b/src/SignCheck/Microsoft.SignCheck/Verification/SignatureVerificationManager.cs
index 1fbec04b00d..47af1c34bb4 100644
--- a/src/SignCheck/Microsoft.SignCheck/Verification/SignatureVerificationManager.cs
+++ b/src/SignCheck/Microsoft.SignCheck/Verification/SignatureVerificationManager.cs
@@ -86,18 +86,19 @@ public SignatureVerificationManager(Exclusions exclusions, Log log, SignatureVer
Log = log;
Options = options;
-#if NETFRAMEWORK
- AddFileVerifier(new AuthentiCodeVerifier(log, exclusions, options, ".psd1"));
- AddFileVerifier(new AuthentiCodeVerifier(log, exclusions, options, ".psm1"));
- AddFileVerifier(new AuthentiCodeVerifier(log, exclusions, options, ".ps1"));
- AddFileVerifier(new AuthentiCodeVerifier(log, exclusions, options, ".ps1xml"));
- AddFileVerifier(new CabVerifier(log, exclusions, options, ".cab"));
- AddFileVerifier(new JarVerifier(log, exclusions, options));
- AddFileVerifier(new MsiVerifier(log, exclusions, options));
- AddFileVerifier(new MspVerifier(log, exclusions, options));
- AddFileVerifier(new MsuVerifier(log, exclusions, options));
- AddFileVerifier(new VsixVerifier(log, exclusions, options));
-#else
+ if (OperatingSystem.IsWindows())
+ {
+ AddFileVerifier(new AuthentiCodeVerifier(log, exclusions, options, ".psd1"));
+ AddFileVerifier(new AuthentiCodeVerifier(log, exclusions, options, ".psm1"));
+ AddFileVerifier(new AuthentiCodeVerifier(log, exclusions, options, ".ps1"));
+ AddFileVerifier(new AuthentiCodeVerifier(log, exclusions, options, ".ps1xml"));
+ AddFileVerifier(new CabVerifier(log, exclusions, options, ".cab"));
+ AddFileVerifier(new JarVerifier(log, exclusions, options));
+ AddFileVerifier(new MsiVerifier(log, exclusions, options));
+ AddFileVerifier(new MspVerifier(log, exclusions, options));
+ AddFileVerifier(new MsuVerifier(log, exclusions, options));
+ }
+
AddFileVerifier(new DebVerifier(log, exclusions, options));
AddFileVerifier(new MachOVerifier(log, exclusions, options, ".dylib"));
AddFileVerifier(new MachOVerifier(log, exclusions, options, ".macho"));
@@ -109,7 +110,6 @@ public SignatureVerificationManager(Exclusions exclusions, Log log, SignatureVer
AddFileVerifier(new TarVerifier(log, exclusions, options, ".tgz"));
AddFileVerifier(new TarVerifier(log, exclusions, options, ".gz"));
AddFileVerifier(new RpmVerifier(log, exclusions, options));
-#endif
AddFileVerifier(new ExeVerifier(log, exclusions, options, ".exe"));
AddFileVerifier(new JavaScriptVerifier(log, exclusions, options));
AddFileVerifier(new LzmaVerifier(log, exclusions, options));
@@ -276,7 +276,7 @@ public static FileVerifier GetFileVerifierByHeader(string path)
fileVerifier = GetFileVerifierByExtension(".macho");
}
}
-#if NETFRAMEWORK
+
reader.BaseStream.Seek(0, SeekOrigin.Begin);
if (stream.Length > 2)
{
@@ -295,7 +295,6 @@ public static FileVerifier GetFileVerifierByHeader(string path)
}
}
}
-#endif
}
return fileVerifier;
diff --git a/src/SignCheck/Microsoft.SignCheck/Verification/VsixVerifier.cs b/src/SignCheck/Microsoft.SignCheck/Verification/VsixVerifier.cs
deleted file mode 100644
index 4b9b11c9400..00000000000
--- a/src/SignCheck/Microsoft.SignCheck/Verification/VsixVerifier.cs
+++ /dev/null
@@ -1,180 +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;
-using System.IO;
-using System.IO.Packaging;
-using System.Linq;
-using System.Runtime.InteropServices;
-using System.Security.Cryptography;
-using System.Security.Cryptography.X509Certificates;
-using System.Xml;
-using Microsoft.SignCheck.Interop;
-using Microsoft.SignCheck.Logging;
-
-namespace Microsoft.SignCheck.Verification
-{
- public class VsixVerifier : ZipVerifier
- {
- public VsixVerifier(Log log, Exclusions exclusions, SignatureVerificationOptions options) : base(log, exclusions, options, fileExtension: ".vsix")
- {
-
- }
-
- public override SignatureVerificationResult VerifySignature(string path, string parent, string virtualPath)
- => VerifySupportedFileType(path, parent, virtualPath);
-
- private bool TryGetTimestamp(PackageDigitalSignature packageSignature, out Timestamp timestamp)
- {
- bool isValidTimestampSignature = false;
-
- if (packageSignature == null)
- {
- throw new ArgumentNullException(nameof(packageSignature));
- }
-
- timestamp = new Timestamp()
- {
- SignedOn = DateTime.MaxValue
- };
-
- XmlNamespaceManager namespaceManager = new XmlNamespaceManager(new NameTable());
- namespaceManager.AddNamespace("ds", "http://schemas.openxmlformats.org/package/2006/digital-signature");
-
- // Obtain timestamp from Signature Xml if there is one.
- XmlElement element = packageSignature.Signature.GetXml();
- XmlNode encodedTimeNode = element.SelectNodes("//ds:TimeStamp/ds:EncodedTime", namespaceManager).OfType().FirstOrDefault();
-
- // If timestamp found, verify it.
- if (encodedTimeNode != null && encodedTimeNode.InnerText != null)
- {
- byte[] binaryTimestamp = null;
-
- try
- {
- binaryTimestamp = Convert.FromBase64String(encodedTimeNode.InnerText);
- }
- catch (FormatException)
- {
- return false;
- }
-
- IntPtr TSContextPtr = IntPtr.Zero;
- IntPtr TSSignerPtr = IntPtr.Zero;
- IntPtr StoreHandle = IntPtr.Zero;
-
- // Ensure timestamp corresponds to package signature
- isValidTimestampSignature = WinCrypt.CryptVerifyTimeStampSignature(binaryTimestamp,
- (uint)binaryTimestamp.Length,
- packageSignature.SignatureValue,
- (uint)packageSignature.SignatureValue.Length,
- IntPtr.Zero,
- out TSContextPtr,
- out TSSignerPtr,
- out StoreHandle);
-
- if (isValidTimestampSignature)
- {
- var timestampContext = (CRYPT_TIMESTAMP_CONTEXT)Marshal.PtrToStructure(TSContextPtr, typeof(CRYPT_TIMESTAMP_CONTEXT));
- var timestampInfo = (CRYPT_TIMESTAMP_INFO)Marshal.PtrToStructure(timestampContext.pTimeStamp, typeof(CRYPT_TIMESTAMP_INFO));
-
- unchecked
- {
- uint low = (uint)timestampInfo.ftTime.dwLowDateTime;
- long ftTimestamp = (((long)timestampInfo.ftTime.dwHighDateTime) << 32) | low;
-
- timestamp.SignedOn = DateTime.FromFileTime(ftTimestamp);
- }
-
- // Get the algorithm name based on the OID.
- timestamp.SignatureAlgorithm = Oid.FromOidValue(timestampInfo.HashAlgorithm.pszObjId, OidGroup.HashAlgorithm).FriendlyName;
-
- X509Certificate2 certificate = new X509Certificate2(packageSignature.Signer);
- timestamp.EffectiveDate = certificate.NotBefore;
- timestamp.ExpiryDate = certificate.NotAfter;
- }
-
- if (IntPtr.Zero != TSContextPtr)
- {
- WinCrypt.CryptMemFree(TSContextPtr);
- }
- if (IntPtr.Zero != TSSignerPtr)
- {
- WinCrypt.CertFreeCertificateContext(TSSignerPtr);
- }
- if (IntPtr.Zero != StoreHandle)
- {
- WinCrypt.CertCloseStore(StoreHandle, 0);
- }
- }
-
- return isValidTimestampSignature;
- }
-
- protected override bool IsSigned(string path, SignatureVerificationResult result)
- {
- PackageDigitalSignature packageSignature = null;
-
- using (var vsixStream = new FileStream(path, FileMode.Open, FileAccess.Read))
- {
- var vsixPackage = Package.Open(vsixStream);
- var signatureManager = new PackageDigitalSignatureManager(vsixPackage);
-
- if (!signatureManager.IsSigned)
- {
- return false;
- }
-
- if (signatureManager.Signatures.Count() != 1)
- {
- return false;
- }
-
- if (signatureManager.Signatures[0].SignedParts.Count != vsixPackage.GetParts().Count() - 1)
- {
- return false;
- }
-
- packageSignature = signatureManager.Signatures[0];
-
- // Retrieve the timestamp
- Timestamp timestamp;
- if (!TryGetTimestamp(packageSignature, out timestamp))
- {
- // Timestamp is either invalid or not present
- result.AddDetail(DetailKeys.Error, SignCheckResources.ErrorInvalidOrMissingTimestamp);
- return false;
- }
-
- // Update the result with the timestamp detail
- result.AddDetail(DetailKeys.Signature, String.Format(SignCheckResources.DetailTimestamp, timestamp.SignedOn, timestamp.SignatureAlgorithm));
-
- // Verify the certificate chain
- X509Certificate2 certificate = new X509Certificate2(packageSignature.Signer);
-
- X509Chain certChain = new X509Chain();
- certChain.ChainPolicy.RevocationFlag = X509RevocationFlag.ExcludeRoot;
- certChain.ChainPolicy.RevocationMode = X509RevocationMode.Online;
-
- // If the certificate has expired, but the VSIX was signed prior to expiration
- // we can ignore invalid time policies.
- bool certExpired = DateTime.Now > certificate.NotAfter;
-
- if (timestamp.IsValid && certExpired)
- {
- certChain.ChainPolicy.VerificationFlags |= X509VerificationFlags.IgnoreNotTimeValid;
- }
-
- if (!certChain.Build(certificate))
- {
- result.AddDetail(DetailKeys.Error, SignCheckResources.DetailErrorFailedToBuildCertChain);
- return false;
- }
-
- result.AddDetail(DetailKeys.Misc, SignCheckResources.DetailCertChainValid);
- }
-
- return true;
- }
- }
-}
diff --git a/src/SignCheck/README.md b/src/SignCheck/README.md
index 8efe1ca824b..023f57fc618 100644
--- a/src/SignCheck/README.md
+++ b/src/SignCheck/README.md
@@ -35,12 +35,11 @@ Arcade defaults to using the signing task via script invocation for signing vali
The CLI tool is maintained for legacy purposes and is only recommended for repositories that already use it. Refrane from using this; new repositories should use the Signing Task instead.
-- **Supported Frameworks**: .NET Framework only
- **Invocation**:
- - `Microsoft.DotNet.SignCheck.exe`
+ - `dnx Microsoft.DotNet.SignCheck`
- **CLI Options**:
```
-Microsoft.DotNet.SignCheck.exe [options]
+Microsoft.DotNet.SignCheck [options]
Options:
@@ -81,46 +80,46 @@ Options:
#### Detected via File Extensions
-| File Extension | Platforms | .NET Product |
-|----------------|----------------------------|----------------------|
-| .a | macOS | .NET Core |
-| .app | macOS | .NET Core |
-| .cab | Windows | .NET Framework |
-| .deb | Linux | .NET Core |
-| .dll | Windows, macOS, Linux | .NET Framework, Core |
-| .dylib | macOS | .NET Core |
-| .exe | Windows, macOS, Linux | .NET Framework, Core |
-| .gz | macOS, Linux | .NET Core |
-| .jar | Windows | .NET Framework |
-| .js | Windows, macOS, Linux | .NET Framework, Core |
-| .lzma | Windows, macOS, Linux | .NET Framework, Core |
-| .macho | macOS | .NET Core |
-| .msi | Windows | .NET Framework |
-| .msp | Windows | .NET Framework |
-| .msu | Windows | .NET Framework |
-| .nupkg | Windows, macOS, Linux | .NET Framework, Core |
-| .pkg | macOS | .NET Core |
-| .ps1 | Windows | .NET Framework |
-| .ps1xml | Windows | .NET Framework |
-| .psd1 | Windows | .NET Framework |
-| .psm1 | Windows | .NET Framework |
-| .rpm | Linux | .NET Core |
-| .so | macOS | .NET Core |
-| .tar | macOS, Linux | .NET Core |
-| .tgz | macOS, Linux | .NET Core |
-| .vsix | Windows | .NET Framework |
-| .xml | Windows, macOS, Linux | .NET Framework, Core |
-| .zip | Windows, macOS, Linux | .NET Framework, Core |
+| File Extension | Platforms |
+|----------------|----------------------------|
+| .a | macOS |
+| .app | macOS |
+| .cab | Windows |
+| .deb | Linux |
+| .dll | Windows, macOS, Linux |
+| .dylib | macOS |
+| .exe | Windows, macOS, Linux |
+| .gz | macOS, Linux |
+| .jar | Windows |
+| .js | Windows, macOS, Linux |
+| .lzma | Windows, macOS, Linux |
+| .macho | macOS |
+| .msi | Windows |
+| .msp | Windows |
+| .msu | Windows |
+| .nupkg | Windows, macOS, Linux |
+| .pkg | macOS |
+| .ps1 | Windows |
+| .ps1xml | Windows |
+| .psd1 | Windows |
+| .psm1 | Windows |
+| .rpm | Linux |
+| .so | macOS |
+| .tar | macOS, Linux |
+| .tgz | macOS, Linux |
+| .vsix | Windows |
+| .xml | Windows, macOS, Linux |
+| .zip | Windows, macOS, Linux |
#### Detected via File Headers
-| File Type | Platforms | .NET Product |
-|----------------------------|----------------------------|----------------------|
-| Cab Files | Windows | .NET Framework |
-| EXE Files | Windows | .NET Framework |
-| Jar Files | Windows | .NET Framework |
-| Mach-O Files | macOS | .NET Core |
-| NuGet Packages | Windows, macOS, Linux | .NET Framework, Core |
-| PE Files | Windows | .NET Framework |
-| VSIX Files | Windows | .NET Framework |
-| Zip Files | Windows, macOS, Linux | .NET Framework, Core |
+| File Type | Platforms |
+|----------------------------|----------------------------|
+| Cab Files | Windows |
+| EXE Files | Windows |
+| Jar Files | Windows |
+| Mach-O Files | macOS |
+| NuGet Packages | Windows, macOS, Linux |
+| PE Files | Windows |
+| VSIX Files | Windows |
+| Zip Files | Windows, macOS, Linux |
diff --git a/src/SignCheck/SignCheck/App.config b/src/SignCheck/SignCheck/App.config
deleted file mode 100644
index 731f6de6c29..00000000000
--- a/src/SignCheck/SignCheck/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/SignCheck/SignCheck/Microsoft.DotNet.SignCheck.csproj b/src/SignCheck/SignCheck/Microsoft.DotNet.SignCheck.csproj
index d0628c78798..294c0def325 100644
--- a/src/SignCheck/SignCheck/Microsoft.DotNet.SignCheck.csproj
+++ b/src/SignCheck/SignCheck/Microsoft.DotNet.SignCheck.csproj
@@ -3,31 +3,21 @@
- $(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
Exe
- true
false
true
-
- true
Build artifact signing validation tool
Arcade Signing Validation Tool
SignCheck
+ true
+ signcheck
+ true
-
+
-
-
-
-
-
-
-
-
diff --git a/src/SignCheck/SignCheckTask/Microsoft.DotNet.SignCheckTask.csproj b/src/SignCheck/SignCheckTask/Microsoft.DotNet.SignCheckTask.csproj
index c5f06e8c52b..0342bd8deb0 100644
--- a/src/SignCheck/SignCheckTask/Microsoft.DotNet.SignCheckTask.csproj
+++ b/src/SignCheck/SignCheckTask/Microsoft.DotNet.SignCheckTask.csproj
@@ -1,7 +1,7 @@
- $(BundledNETCoreAppTargetFramework);$(NetFrameworkToolCurrent)
+ $(BundledNETCoreAppTargetFramework)
true
false
true
@@ -21,11 +21,6 @@
-
-
-
-
-
- $(MSBuildThisFileDirectory)..\lib\net\Microsoft.DotNet.SignCheckTask.dll
- $(MSBuildThisFileDirectory)..\lib\netframework\Microsoft.DotNet.SignCheckTask.dll
+ $(MSBuildThisFileDirectory)..\lib\net\Microsoft.DotNet.SignCheckTask.dll
-
+
diff --git a/src/SignCheck/SignCheckTask/src/SignCheckTask.cs b/src/SignCheck/SignCheckTask/src/SignCheckTask.cs
index 63cdd484c7a..84df0910bdc 100644
--- a/src/SignCheck/SignCheckTask/src/SignCheckTask.cs
+++ b/src/SignCheck/SignCheckTask/src/SignCheckTask.cs
@@ -3,11 +3,7 @@
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
-#if NET472
-using AppDomainIsolatedTask = Microsoft.Build.Utilities.AppDomainIsolatedTask;
-#else
using BuildTask = Microsoft.Build.Utilities.Task;
-#endif
using Microsoft.SignCheck.Logging;
using System;
using System.Collections.Generic;
@@ -16,16 +12,8 @@
namespace SignCheckTask
{
-#if NETFRAMEWORK
- [LoadInSeparateAppDomain]
- [RunInSTA]
- public class SignCheckTask : AppDomainIsolatedTask
- {
- static SignCheckTask() => Microsoft.DotNet.AssemblyResolution.Initialize();
-#else
public class SignCheckTask : BuildTask
{
-#endif
public bool EnableJarSignatureVerification
{
get;
@@ -104,9 +92,6 @@ public string ArtifactFolder
public override bool Execute()
{
-#if NETFRAMEWORK
- Microsoft.DotNet.AssemblyResolution.Log = Log;
-#endif
try
{
bool succeeded = ExecuteImpl();
@@ -114,9 +99,6 @@ public override bool Execute()
}
finally
{
-#if NETFRAMEWORK
- Microsoft.DotNet.AssemblyResolution.Log = null;
-#endif
}
}
diff --git a/src/VersionTools/Microsoft.DotNet.VersionTools.Tasks.Tests/Microsoft.DotNet.VersionTools.Tasks.Tests.csproj b/src/VersionTools/Microsoft.DotNet.VersionTools.Tasks.Tests/Microsoft.DotNet.VersionTools.Tasks.Tests.csproj
deleted file mode 100644
index 4168c14aa5a..00000000000
--- a/src/VersionTools/Microsoft.DotNet.VersionTools.Tasks.Tests/Microsoft.DotNet.VersionTools.Tasks.Tests.csproj
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
- $(BundledNETCoreAppTargetFramework)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/tests/UnitTests.proj b/tests/UnitTests.proj
index 5ad2a0dff8e..31243b082bf 100644
--- a/tests/UnitTests.proj
+++ b/tests/UnitTests.proj
@@ -6,8 +6,8 @@
$(BundledNETCoreAppTargetFramework)
- $(MSBuildThisFileDirectory)../artifacts/bin/Microsoft.DotNet.Helix.Sdk/$(Configuration)/$(BundledNETCoreAppTargetFramework)/publish/Microsoft.DotNet.Helix.Sdk.dll
- $(MSBuildThisFileDirectory)../artifacts/bin/Microsoft.DotNet.Helix.Sdk/$(Configuration)/$(NetFrameworkToolCurrent)/publish/Microsoft.DotNet.Helix.Sdk.dll
+ $(MSBuildThisFileDirectory)../artifacts/bin/Microsoft.DotNet.Helix.Sdk/$(Configuration)/Microsoft.DotNet.Helix.Sdk.dll
+ TaskHostFactory
@@ -47,8 +47,6 @@
-
-
diff --git a/tests/XHarness.Tests.Common.props b/tests/XHarness.Tests.Common.props
index 37b80e40239..4e36863a3c4 100644
--- a/tests/XHarness.Tests.Common.props
+++ b/tests/XHarness.Tests.Common.props
@@ -8,8 +8,8 @@
-->
- $(MSBuildThisFileDirectory)../artifacts/bin/Microsoft.DotNet.Helix.Sdk/$(Configuration)/$(BundledNETCoreAppTargetFramework)/publish/Microsoft.DotNet.Helix.Sdk.dll
- $(MSBuildThisFileDirectory)../artifacts/bin/Microsoft.DotNet.Helix.Sdk/$(Configuration)/$(NetFrameworkToolCurrent)/publish/Microsoft.DotNet.Helix.Sdk.dll
+ $(MSBuildThisFileDirectory)../artifacts/bin/Microsoft.DotNet.Helix.Sdk/$(Configuration)/Microsoft.DotNet.Helix.Sdk.dll
+ TaskHostFactory