Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VisualStudioWorkspace projects do not get updated if Release configuration is selected on the project #1375

Closed
davkean opened this issue Jan 30, 2017 · 3 comments
Assignees
Labels
Feature-Language-Service Populating the Roslyn workspace with references, source files, analyzers, etc
Milestone

Comments

@davkean
Copy link
Member

davkean commented Jan 30, 2017

The problem seems to be with First time publish of the project.

If I unload the project after first publish and then try to add a model and scaffold, everything seems to work fine.

Workaround steps:

  1. Create ASP.NET Core Web Application > Web Application with Individual
  2. Check the checkbox for "Create new Git repository"
  3. Publish to Web App
  4. Unload project
  5. Add model class
  6. Scaffold.

Scaffolding uses VisualStudioWorkspace from Rolsyn to get project compilations and then gets the types available.

If I add a model class when release configuration is selected and then inspect the Project using the VisualStudioWorkspace, the included Documents does not contain the newly added model class.

Attached Screenshots
Config-Release.png :: inspecting Project in release configuration
image

Config-Debug.png :: inspecting Project in Debug configuration
image

Prafull Bhosalecommented 2 months ago
Tried the scenario with RC (15.0.25920.0)
It does not repro on the RC build.

Prafull Bhosalecommented 2 months ago
Update from @vijay Ramakrishnan
If we add a model while release configuration is selected, then model does not get displayed on the model drop down. If the configuration is changed to debug, the model shows up (repro without publish: change the configuration to release, add a model, go to the scaffolding dialog and model wont show up, change the configuration to debug and model starts showing up.)

@davkean davkean self-assigned this Jan 30, 2017
@davkean davkean added this to the 1.1 milestone Jan 30, 2017
@davkean davkean added the Bug label Jan 30, 2017
@srivatsn srivatsn added the Feature-Language-Service Populating the Roslyn workspace with references, source files, analyzers, etc label Apr 3, 2017
@davkean
Copy link
Member Author

davkean commented May 23, 2017

This is a dup of: #1375

@davkean davkean closed this as completed May 23, 2017
@prafullbhosale
Copy link

This is a dup of: #1375

@davkean, did you mean to dupe it to a different issue?

@srivatsn
Copy link
Contributor

I think #2262

@drewnoakes drewnoakes removed the Bug label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature-Language-Service Populating the Roslyn workspace with references, source files, analyzers, etc
Projects
None yet
Development

No branches or pull requests

4 participants