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
GH1533: Updated DotNetCoreBuild inline with Tooling v1.0 #1550
GH1533: Updated DotNetCoreBuild inline with Tooling v1.0 #1550
Conversation
@JonCubed, |
2aae0e2
to
bad4bf1
Compare
bad4bf1
to
5ca01bc
Compare
@@ -42,11 +37,6 @@ public sealed class DotNetCoreBuildSettings : DotNetCoreSettings | |||
public string VersionSuffix { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a string Version { get; set; } too, equivalent to
ArgumentCustomization = arg=>arg.Append(string.Concat("/p:Version=", semVersion)),
We should also add an
public IDictionary<string, IList<string>> Properties => _properties;
To support MSBuild properties without ArgumentCustomization, similar too MSBuildSettings.Properties
We should also add an
public ISet<string> Targets { get; }
Running dotnet msbuild -h
looks like it support most MSBuild so future refactoring could be to see what we have common between the .NET Core CLI and MSBuild alias.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe version could be something common, know dotnet pack
accepts & should have it too (haven't tested all yet but probably publish too).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@devlead Should we really add Version
now? Isn't it better to wait until the API settled a little bit? I would rather see MSBuild properties first.
If we add version we should add support for AssemblyVersion
and FileVersion
as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was planning to add VersionPrefix
after all the current tasks are done, along with Properties
. I don't think we should use Version
, I think it gets overridden in some situations unexpectedly and doesn't work with VersionSuffix
.
@patriksvensson if my memory is correct, when I was testing using VersionPrefix
with the build command acted as AssemblyVersion
33f8846
to
f9b3ee2
Compare
@JonCubed your changes have been merged, thanks for your contribution 👍 |
See #1533 for more info