Skip to content

Commit

Permalink
fix: always allow generator tools to roll forward to latest SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Sep 21, 2023
1 parent 7e1c620 commit dfb1e63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/Cli.Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<PropertyGroup>
<Description>.NET Core command-line tooling for IntelliTect.Coalesce code generation</Description>
<OutputType>Exe</OutputType>

<!-- Always allow the tools to roll forward to take advantage of newer installed SDKs on developer machines. -->
<RollForward>LatestMinor</RollForward>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/IntelliTect.Coalesce.DotnetTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ private async Task<int> OnExecuteAsync(CommandLineApplication app)

// Get the target framework (e.g. ".NETCoreApp,Version=v2.0") that Coalesce was compiled against.
// I added this originally for debugging, but its kinda nice to show regardless.
var attr = Assembly.GetEntryAssembly().GetCustomAttribute<TargetFrameworkAttribute>();
var frameworkVersion = System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription;

// This reflects the version of the nuget package.
string version = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).ProductVersion;

Console.WriteLine($"Starting Coalesce {version}, running under {attr.FrameworkName}");
Console.WriteLine($"Starting Coalesce {version}, running under {frameworkVersion}");
Console.WriteLine("https://github.com/IntelliTect/Coalesce");
Console.WriteLine();

Expand Down

0 comments on commit dfb1e63

Please sign in to comment.