VisualStudioWorkspace projects do not get updated if Release configuration is selected on the project #1375
Labels
Feature-Language-Service
Populating the Roslyn workspace with references, source files, analyzers, etc
Milestone
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:
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
Config-Debug.png :: inspecting Project in Debug configuration
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.)
The text was updated successfully, but these errors were encountered: