Add "/warnaserror" to restore and build
- Default templates should have no restore or build warnings
This commit is contained in:
parent
ba2eacc3f5
commit
e63e00ad04
|
|
@ -96,7 +96,7 @@ namespace AspNetCoreSdkTests.Util
|
||||||
|
|
||||||
public static string Restore(string workingDirectory, NuGetPackageSource packageSource, RuntimeIdentifier runtimeIdentifier)
|
public static string Restore(string workingDirectory, NuGetPackageSource packageSource, RuntimeIdentifier runtimeIdentifier)
|
||||||
{
|
{
|
||||||
return RunDotNet($"restore --no-cache {packageSource.SourceArgument} {runtimeIdentifier.RuntimeArgument}",
|
return RunDotNet($"restore /warnaserror --no-cache {packageSource.SourceArgument} {runtimeIdentifier.RuntimeArgument}",
|
||||||
workingDirectory, GetEnvironment(packageSource));
|
workingDirectory, GetEnvironment(packageSource));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -108,7 +108,7 @@ namespace AspNetCoreSdkTests.Util
|
||||||
|
|
||||||
var restoreArgument = restoreRequired ? $"--no-cache {packageSource.SourceArgument}" : "--no-restore";
|
var restoreArgument = restoreRequired ? $"--no-cache {packageSource.SourceArgument}" : "--no-restore";
|
||||||
|
|
||||||
return RunDotNet($"build {restoreArgument} {runtimeIdentifier.RuntimeArgument}", workingDirectory, GetEnvironment(packageSource));
|
return RunDotNet($"build /warnaserror {restoreArgument} {runtimeIdentifier.RuntimeArgument}", workingDirectory, GetEnvironment(packageSource));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static (Process Process, ConcurrentStringBuilder OutputBuilder, ConcurrentStringBuilder ErrorBuilder) Run(
|
public static (Process Process, ConcurrentStringBuilder OutputBuilder, ConcurrentStringBuilder ErrorBuilder) Run(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue