Open am11 opened 7 years ago
Oh, that is confusing: one of the command-line examples given in MSBuild's help uses TargetFrameworkVersion
, which was fine for non-Core Sdk projects building only for versions of the full framework, but is definitely confusing in the new world (and when passed out through dotnet msbuild -h
, for example).
I think the best thing to do is just not use TargetFramework{anything} in the example. It's useful to specify two properties to show the syntax for that, though. Maybe go fully generic and specify something like EnableFeatureX=true
?
@rainersigwald, I agree that it should probably be a neutral property such as EnableFeatureX=true
or perhaps even more templated form:
/p:Configuration=Debug;<key1>=<value1>;<key2>=<value2>
I tried to find some project-type-neutral property besides Configuration
at https://msdn.microsoft.com/en-us/library/bb629394.aspx, but AFAIK -- as opposed what is documented there, OutputPath
has no affect in vcxproj
, whereas OutDir
works there. Similarly OutDir
is privately set in case of typical csproj
and has no affect if we set it later (unless we re-invoke all the targets etc. - jeffkl/MSBuild-NetCore#2). So it's a no go. :(
(moved from dotnet/cli#5921)
The command line help suggests:
should work, however it errors out. Whereas
TargetFramework
switch does work:The ask is to clarify the difference in help (perhaps with a core-specific example):