question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet build3: case of -f (framework) parameter defines case, not project

See original GitHub issue

Steps to reproduce

  1. dotnet new
  2. dotnet restore3
  3. dotnet build3 -f NETCOREAPP1.0

Expected

Artifacts on disk should match TFM case in the project file.

Actual

 Volume in drive C has no label.
 Volume Serial Number is 3487-F055

 Directory of C:\Users\jver\Desktop\reprocase\bin\Debug

10/17/2016  07:28 PM    <DIR>          .
10/17/2016  07:28 PM    <DIR>          ..
10/17/2016  07:28 PM    <DIR>          NETCOREAPP1.0
               0 File(s)              0 bytes

Environment

Microsoft.NET.Sdk/1.0.0-alpha-20161012-3

dotnet --info

.NET Command Line Tools (1.0.0-preview3-003857)

Product Information:
 Version:            1.0.0-preview3-003857
 Commit SHA-1 hash:  060762090d

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.14393
 OS Platform: Windows
 RID:         win10-x64

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
blackdwarfcommented, Oct 21, 2016

Guys, why don’t we just ToLower the -f parameter? We know that TFMs are mostly lower-case, right?

1reaction
nguerreracommented, Oct 21, 2016

We can tolower the target framework portion of the output dir in msbuild, then everybody gets sane behaviour.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet build command - .NET CLI
The dotnet build command builds a project and all of its dependencies.
Read more >
MSBuild reference for .NET SDK projects
Use the NetStandardImplicitPackageVersion property when you want to specify a framework version that's lower than the metapackage version. The ...
Read more >
GN Reference
This includes cases where the input file is not in the right format, or contains invalid targets. If output_path is -, output is...
Read more >
dotnet build ignore --framework param for projects with ...
1. There are 2 options for this I think: build the main project instead of the solution, or use msbuild to define the...
Read more >
Oracle Banking Digital Experience UX Extensibility Toolkit
In case the parameter values are being passed from the previous component, the variable name has to be mentioned in this pane. The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found