Web project publishes .vscode directory
See original GitHub issueSince websdk repo is private, opening an issue here…
The glob patterns in sdk/websdk publish folders that should be considered “hidden” like .vscode
.
This probably also applies to files/folders that one would expect to be hidden… Maybe every file/folder starting with a dot?
@guardrex also discovered that the Properties
folder is deployed as well thus deploying publish profiles.
Steps to reproduce:
dotnet new -t web1.1
dotnet restore
code .
- Omnisharp-VSCode asks to add “required assets” > klick “yes”
dotnet publish -c Release
ls -la bin/Release/netcoreapp1.1/publish/.vscode/
-rw-r--r-- 1 martin staff 1262 Jan 11 21:44 launch.json
-rw-r--r-- 1 martin staff 332 Jan 11 21:44 tasks.json
dotnet --info
output:
.NET Command Line Tools (1.0.0-preview5-004478)
Product Information:
Version: 1.0.0-preview5-004478
Commit SHA-1 hash: 4d3e2872fe
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/1.0.0-preview5-004478
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:8 (8 by maintainers)
Top Results From Across the Web
2 tips for working with Web Project Folders, CMD Window ...
With web project in Visual Studio Code (VSCode) you need to open the folder at the root of the project rather than a...
Read more >User and Workspace Settings
The workspace settings file is located under the .vscode folder in your root folder. The File Explorer displaying settings.json under the .vscode folder....
Read more >Publish Web Deploy using VS Code
In Visual Studio, I use the "publish web" feature to do some web.config transforms, and publish a WebAPI project to our server. The...
Read more >Publish a .NET console application using Visual Studio Code
In Explorer, right-click the publish folder ( Ctrl -click on macOS), and select Open in Terminal. Context menu showing Open in Terminal. On ......
Read more >How to Publish a New Project to Github with VS Code - YouTube
Pushing your new project to github requires that you initialize git, stage changes and commit those changes before you can run the push ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@dsplaisted mentioned that .vscode should be getting excluded with https://github.com/aspnet/websdk/pull/94. @dsplaisted can you make sure it’s fixed?
I think the .vscode folder is being included because the Web SDK
Content
include isn’t excluding DefaultExcludesInProjectFolder. I think this PR there will fix this: https://github.com/aspnet/websdk/pull/94/filesI’m not sure why the properties folder is being published, perhaps the
AppDesignerFolder
folder property isn’t set?