diff --git a/build/BuildDefaults.props b/build/BuildDefaults.props
index 64eddcfd4..1e985282c 100644
--- a/build/BuildDefaults.props
+++ b/build/BuildDefaults.props
@@ -7,5 +7,14 @@
true
true
true
+
+
+ true
+
+
+
+ NU1701
+
+ true
diff --git a/build/sdks/sdks.csproj b/build/sdks/sdks.csproj
index b7c9941c0..da276047e 100755
--- a/build/sdks/sdks.csproj
+++ b/build/sdks/sdks.csproj
@@ -1,5 +1,6 @@
+
Library
@@ -9,6 +10,7 @@
+
diff --git a/src/Microsoft.DotNet.Cli.Utils/Microsoft.DotNet.Cli.Utils.csproj b/src/Microsoft.DotNet.Cli.Utils/Microsoft.DotNet.Cli.Utils.csproj
index ed1056755..fec257bdd 100644
--- a/src/Microsoft.DotNet.Cli.Utils/Microsoft.DotNet.Cli.Utils.csproj
+++ b/src/Microsoft.DotNet.Cli.Utils/Microsoft.DotNet.Cli.Utils.csproj
@@ -24,7 +24,7 @@
-
+
diff --git a/src/dotnet/HelpException.cs b/src/dotnet/HelpException.cs
index 98f2eb6f7..f1f9eb5b4 100644
--- a/src/dotnet/HelpException.cs
+++ b/src/dotnet/HelpException.cs
@@ -6,7 +6,6 @@ namespace Microsoft.DotNet.Cli
///
/// Allows control flow to be interrupted in order to display help in the console.
///
- [Obsolete("This is intended to facilitate refactoring during parser replacement and should not be used after that work is done.")]
public class HelpException : Exception
{
public HelpException(string message) : base(message)
diff --git a/src/dotnet/commands/dotnet-add/dotnet-add-package/Program.cs b/src/dotnet/commands/dotnet-add/dotnet-add-package/Program.cs
index ee7f15ecd..c0af31625 100644
--- a/src/dotnet/commands/dotnet-add/dotnet-add-package/Program.cs
+++ b/src/dotnet/commands/dotnet-add/dotnet-add-package/Program.cs
@@ -75,7 +75,7 @@ namespace Microsoft.DotNet.Tools.Add.PackageReference
catch (IOException ioex)
{
// Catch IOException from Path.GetTempFileName() and throw a graceful exception to the user.
- throw new GracefulException(string.Format(LocalizableStrings.CmdDGFileIOException, projectFilePath));
+ throw new GracefulException(string.Format(LocalizableStrings.CmdDGFileIOException, projectFilePath), ioex);
}
GetProjectDependencyGraph(projectFilePath, tempDgFilePath);
diff --git a/src/dotnet/dotnet.csproj b/src/dotnet/dotnet.csproj
index 71da96676..e5f36bff3 100644
--- a/src/dotnet/dotnet.csproj
+++ b/src/dotnet/dotnet.csproj
@@ -2,13 +2,13 @@
$(SdkVersion)
- netcoreapp2.0
+ $(CliTargetFramework)
dotnet
Exe
../../tools/Key.snk
true
true
- $(AssetTargetFallback);dotnet5.4
+ dotnet5.4
Microsoft.DotNet.Cli
diff --git a/src/redist/redist.csproj b/src/redist/redist.csproj
index a6ad0ac3f..74404453e 100644
--- a/src/redist/redist.csproj
+++ b/src/redist/redist.csproj
@@ -10,7 +10,7 @@
$(CLI_SharedFrameworkVersion)
true
false
- $(AssetTargetFallback);dotnet5.4
+ dotnet5.4
$(SdkOutputDirectory)
$(CommitCount)
diff --git a/src/tool_fsharp/tool_fsc.csproj b/src/tool_fsharp/tool_fsc.csproj
index dcd58965a..d8fb48246 100644
--- a/src/tool_fsharp/tool_fsc.csproj
+++ b/src/tool_fsharp/tool_fsc.csproj
@@ -4,7 +4,7 @@
$(CliVersionPrefix)
- netcoreapp2.0
+ $(CliTargetFramework)
true
$(FSharpDirectory)
$(CommitCount)
diff --git a/src/tool_roslyn/tool_roslyn.csproj b/src/tool_roslyn/tool_roslyn.csproj
index bd702ca7c..ee6a77522 100644
--- a/src/tool_roslyn/tool_roslyn.csproj
+++ b/src/tool_roslyn/tool_roslyn.csproj
@@ -4,7 +4,7 @@
$(CliVersionPrefix)
- netcoreapp2.0
+ $(CliTargetFramework)
$(CLI_SharedFrameworkVersion)
true
$(RoslynDirectory)