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.

Web project publishes .vscode directory

See original GitHub issue

Since 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

cc @dsplaisted @mlorbetske

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
srivatsncommented, Feb 3, 2017

@dsplaisted mentioned that .vscode should be getting excluded with https://github.com/aspnet/websdk/pull/94. @dsplaisted can you make sure it’s fixed?

1reaction
dsplaistedcommented, Jan 12, 2017

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/files

I’m not sure why the properties folder is being published, perhaps the AppDesignerFolder folder property isn’t set?

Read more comments on GitHub >

github_iconTop 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 >

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