diff --git a/Build/Build.csproj b/Build/Build.csproj
index 600ccca..acf4369 100644
--- a/Build/Build.csproj
+++ b/Build/Build.csproj
@@ -5,6 +5,6 @@
enable
-
+
diff --git a/Build/Program.cs b/Build/Program.cs
index 65328d2..0f72318 100644
--- a/Build/Program.cs
+++ b/Build/Program.cs
@@ -11,8 +11,8 @@
const string packageId = "Immutype";
Settings[] buildSettings =
[
- new Settings("3.8", "3.8.0"),
- new Settings("4.0", "4.0.1")
+ new("3.8", "3.8.0"),
+ new("4.0", "4.0.1")
];
var currentDir = Environment.CurrentDirectory;
@@ -33,14 +33,12 @@
new DotNetClean()
.WithConfiguration(configuration)
.WithProps(props)
- .Build()
- .EnsureSuccess();
+ .Build().EnsureSuccess();
new DotNetTest()
.WithConfiguration(configuration)
.WithProps(props)
- .Build()
- .EnsureSuccess();
+ .Build().EnsureSuccess();
var packagePath = Path.GetFullPath(Path.Combine(outputDir, $"roslyn{settings.AnalyzerRoslynVersion}"));
new DotNetPack()
@@ -48,8 +46,7 @@
.WithNoBuild(true)
.WithOutput(packagePath)
.WithProps(props)
- .Build()
- .EnsureSuccess();
+ .Build().EnsureSuccess();
var package = Path.Combine(packagePath, $"Immutype.{nuGetVersion}.nupkg");
packages.Add(package);
@@ -68,10 +65,9 @@
new DotNetNuGetPush()
.WithShortName($"Pushing {Path.GetFileName(mergedPackage)}")
.WithApiKey(apiKey)
- .WithSources("https://api.nuget.org/v3/index.json")
+ .WithSource("https://api.nuget.org/v3/index.json")
.WithPackage(mergedPackage)
- .Run()
- .EnsureSuccess();
+ .Run().EnsureSuccess();
}
WriteLine($"Package version: {nuGetVersion}", Color.Highlighted);
diff --git a/Immutype.Tests/Immutype.Tests.csproj b/Immutype.Tests/Immutype.Tests.csproj
index 71deb2d..d0f1f06 100644
--- a/Immutype.Tests/Immutype.Tests.csproj
+++ b/Immutype.Tests/Immutype.Tests.csproj
@@ -11,7 +11,7 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/Immutype.UsageScenarios.Tests/Immutype.UsageScenarios.Tests.csproj b/Immutype.UsageScenarios.Tests/Immutype.UsageScenarios.Tests.csproj
index 95b546c..955f1a6 100644
--- a/Immutype.UsageScenarios.Tests/Immutype.UsageScenarios.Tests.csproj
+++ b/Immutype.UsageScenarios.Tests/Immutype.UsageScenarios.Tests.csproj
@@ -14,7 +14,7 @@
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/Immutype/Immutype.csproj b/Immutype/Immutype.csproj
index 0b9bfd1..9fac85c 100644
--- a/Immutype/Immutype.csproj
+++ b/Immutype/Immutype.csproj
@@ -32,7 +32,7 @@
-
+
all
analyzers