Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

dotnet publish includes refs directory when no views are compiled #2246

Closed
pranavkm opened this issue Apr 6, 2018 · 4 comments
Closed

dotnet publish includes refs directory when no views are compiled #2246

pranavkm opened this issue Apr 6, 2018 · 4 comments
Assignees
Labels
3 - Done bug cost: XS Will take up to half a day to complete
Milestone

Comments

@pranavkm
Copy link
Contributor

pranavkm commented Apr 6, 2018

Repurposing original issue since that's external. This is a regression compared to 2.0.0

mkdir api
cd api
dotnet new api
dotnet publish

dir /b /ad bin\Debug\netcoreapp2.1\publish
refs


Original issue

  1. dotnet new mvc
  2. dotnet build

There's a refs directory in the bin\debug\netcoreapp2.1 directory containing a slew of files from Microsoft.NETCore.App and Microsoft.AspNetCore.App.

@pranavkm
Copy link
Contributor Author

pranavkm commented Apr 6, 2018

cc @DamianEdwards \ @rynowak \ @mkArtakMSFT

Using this issue to track the source.

@pranavkm
Copy link
Contributor Author

pranavkm commented Apr 9, 2018

cc @mikeharder

@pranavkm
Copy link
Contributor Author

pranavkm commented Apr 9, 2018

Tracking Sdk change via dotnet/sdk#2121

@mikeharder
Copy link
Contributor

@pranavkm: I found another interesting wrinkle to this issue. If I use dotnet new api rather than dotnet new mvc, then the refs folder is also included in the output of dotnet publish. Repro steps:

> mkdir api
> cd api
> dotnet new api
> dotnet publish

> dir /b /ad bin\Debug\netcoreapp2.1\publish
refs

@mikeharder mikeharder reopened this Apr 11, 2018
@pranavkm pranavkm changed the title dotnet build includes a refs directory containing all binaries from the shared fx dotnet publish includes refs directory when no views are compiled Apr 11, 2018
@pranavkm pranavkm added 2 - Working and removed bug labels Apr 11, 2018
@pranavkm pranavkm added bug cost: XS Will take up to half a day to complete and removed external labels Apr 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
3 - Done bug cost: XS Will take up to half a day to complete
Projects
None yet
Development

No branches or pull requests

3 participants