Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHubSync update #454

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"cake.tool": {
"version": "3.1.0",
"version": "3.2.0",
"commands": [
"dotnet-cake"
]
Expand Down
14 changes: 7 additions & 7 deletions deployment/cake/installers-squirrel.cake
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ public class SquirrelInstaller : IInstaller

if (!BuildContext.CakeContext.FileExists(nuSpecTemplateFileName))
{
BuildContext.CakeContext.Information("Skip packaging of WPF app '{0}' using Squirrel since no Squirrel template is present");
BuildContext.CakeContext.Information($"Skip packaging of WPF app '{projectName}' using Squirrel since no Squirrel template is present");
return;
}

BuildContext.CakeContext.LogSeparator("Packaging WPF app '{0}' using Squirrel", projectName);
BuildContext.CakeContext.LogSeparator($"Packaging WPF app '{projectName}' using Squirrel");

BuildContext.CakeContext.CreateDirectory(squirrelReleasesRoot);
BuildContext.CakeContext.CreateDirectory(squirrelOutputIntermediate);
Expand Down Expand Up @@ -98,7 +98,7 @@ public class SquirrelInstaller : IInstaller
var appSourceDirectory = System.IO.Path.Combine(BuildContext.General.OutputRootDirectory, projectName);
var appTargetDirectory = System.IO.Path.Combine(squirrelOutputIntermediate, "lib");

BuildContext.CakeContext.Information("Copying files from '{0}' => '{1}'", appSourceDirectory, appTargetDirectory);
BuildContext.CakeContext.Information($"Copying files from '{appSourceDirectory}' => '{appTargetDirectory}'");

BuildContext.CakeContext.CopyDirectory(appSourceDirectory, appTargetDirectory);

Expand All @@ -110,7 +110,7 @@ public class SquirrelInstaller : IInstaller
{
var squirrelTargetFile = System.IO.Path.Combine(appTargetDirectory, subDirectory.Segments[subDirectory.Segments.Length - 1], "Squirrel.exe");

BuildContext.CakeContext.Information("Copying Squirrel.exe to support self-updates from '{0}' => '{1}'", squirrelSourceFile, squirrelTargetFile);
BuildContext.CakeContext.Information($"Copying Squirrel.exe to support self-updates from '{squirrelSourceFile}' => '{squirrelTargetFile}'");

BuildContext.CakeContext.CopyFile(squirrelSourceFile, squirrelTargetFile);
}
Expand Down Expand Up @@ -144,7 +144,7 @@ public class SquirrelInstaller : IInstaller
var sourcePackageFileName = System.IO.Path.Combine(squirrelOutputIntermediate, $"{projectSlug}{setupSuffix}.{BuildContext.General.Version.NuGet}.nupkg");
var targetPackageFileName = System.IO.Path.Combine(squirrelOutputIntermediate, $"{projectName}.{BuildContext.General.Version.NuGet}.nupkg");

BuildContext.CakeContext.Information("Moving file from '{0}' => '{1}'", sourcePackageFileName, targetPackageFileName);
BuildContext.CakeContext.Information($"Moving file from '{sourcePackageFileName}' => '{targetPackageFileName}'");

BuildContext.CakeContext.MoveFile(sourcePackageFileName, targetPackageFileName);
}
Expand All @@ -157,7 +157,7 @@ public class SquirrelInstaller : IInstaller
BuildContext.CakeContext.CreateDirectory(releasesSourceDirectory);
BuildContext.CakeContext.CreateDirectory(releasesTargetDirectory);

BuildContext.CakeContext.Information("Copying releases from '{0}' => '{1}'", releasesSourceDirectory, releasesTargetDirectory);
BuildContext.CakeContext.Information($"Copying releases from '{releasesSourceDirectory}' => '{releasesTargetDirectory}'");

BuildContext.CakeContext.CopyDirectory(releasesSourceDirectory, releasesTargetDirectory);

Expand Down Expand Up @@ -185,7 +185,7 @@ public class SquirrelInstaller : IInstaller

if (BuildContext.Wpf.UpdateDeploymentsShare)
{
BuildContext.CakeContext.Information("Copying updated Squirrel files back to deployments share at '{0}'", releasesSourceDirectory);
BuildContext.CakeContext.Information($"Copying updated Squirrel files back to deployments share at '{releasesSourceDirectory}'");

// Copy the following files:
// - [version]-full.nupkg
Expand Down
2 changes: 1 addition & 1 deletion deployment/cake/issuetrackers-github.cake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#tool "nuget:?package=gitreleasemanager&version=0.15.0"
#tool "nuget:?package=gitreleasemanager&version=0.16.0"

//-------------------------------------------------------------

Expand Down
13 changes: 9 additions & 4 deletions deployment/cake/lib-msbuild.cake
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,13 @@ private static void RunMsBuild(BuildContext buildContext, string projectName, st
buildContext.CakeContext.Information(string.Empty);
buildContext.CakeContext.Information($"Done {action}ing project, took '{buildStopwatch.Elapsed}'");
buildContext.CakeContext.Information(string.Empty);
buildContext.CakeContext.Information($"Investigating potential issues using '{logPath}'");
buildContext.CakeContext.Information(string.Empty);

if (System.IO.File.Exists(logPath))
if (buildContext.General.EnableMsBuildXmlLog &&
System.IO.File.Exists(logPath))
{
buildContext.CakeContext.Information($"Investigating potential issues using '{logPath}'");
buildContext.CakeContext.Information(string.Empty);

var investigationStopwatch = Stopwatch.StartNew();

var issuesContext = buildContext.CakeContext.MsBuildIssuesFromFilePath(logPath, buildContext.CakeContext.MsBuildXmlFileLoggerFormat());
Expand Down Expand Up @@ -301,9 +303,12 @@ private static void RunMsBuild(BuildContext buildContext, string projectName, st

failBuild = true;
}

buildContext.CakeContext.Information(string.Empty);
buildContext.CakeContext.Information($"Done investigating project, took '{investigationStopwatch.Elapsed}'");
buildContext.CakeContext.Information(string.Empty);
}

buildContext.CakeContext.Information(string.Empty);
buildContext.CakeContext.Information($"Done investigating project, took '{investigationStopwatch.Elapsed}'");
buildContext.CakeContext.Information($"Total msbuild ({action} + investigation) took '{totalStopwatch.Elapsed}'");
buildContext.CakeContext.Information(string.Empty);
Expand Down
24 changes: 24 additions & 0 deletions src/Directory.Build.shared.explicit.props
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,30 @@
<Page Include="Platforms\net\**\*.xaml" SubType="Designer" Generator="MSBuild:Compile" />
<Compile Update="Platforms\net\**\*.xaml.cs" SubType="Code" DependentUpon="%(Filename)" />
</ItemGroup>

<!-- .NET 9.0 -->
<PropertyGroup Condition=" $(TargetFramework.StartsWith('net9.0')) ">
<DefineConstants>$(DefineConstants);NETCORE;NETCORE9;NETCORE9_0;NET9;NET9_0</DefineConstants>
</PropertyGroup>

<ItemGroup Condition=" $(TargetFramework.StartsWith('net9.0')) ">
<None Remove="Platforms\net\**\*.cs;Platforms\net\**\*.xaml;Platforms\net\**\*.xaml.cs" />
<Compile Include="Platforms\net\**\*.cs" DependentUpon="%(Filename)" />
<Page Include="Platforms\net\**\*.xaml" SubType="Designer" Generator="MSBuild:Compile" />
<Compile Update="Platforms\net\**\*.xaml.cs" SubType="Code" DependentUpon="%(Filename)" />
</ItemGroup>

<!-- .NET 10.0 -->
<PropertyGroup Condition=" $(TargetFramework.StartsWith('net10.0')) ">
<DefineConstants>$(DefineConstants);NETCORE;NETCORE10;NETCORE10_0;NET10;NET10_0</DefineConstants>
</PropertyGroup>

<ItemGroup Condition=" $(TargetFramework.StartsWith('net10.0')) ">
<None Remove="Platforms\net\**\*.cs;Platforms\net\**\*.xaml;Platforms\net\**\*.xaml.cs" />
<Compile Include="Platforms\net\**\*.cs" DependentUpon="%(Filename)" />
<Page Include="Platforms\net\**\*.xaml" SubType="Designer" Generator="MSBuild:Compile" />
<Compile Update="Platforms\net\**\*.xaml.cs" SubType="Code" DependentUpon="%(Filename)" />
</ItemGroup>

<!-- .NET Standard 2.0 -->
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
Expand Down
2 changes: 1 addition & 1 deletion src/global.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"MSBuild.Sdk.Extras": "3.0.44"
},
"sdk": {
"version": "7.0.0",
"version": "8.0.0",
"rollForward": "latestMinor",
"allowPrerelease": false
}
Expand Down