You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I struggle to run/debug MakeConstCS sample in VS2015 RC for some time already.
My steps were:
-> Checkout roslyn code-base (branch releases/VS2015RC)
-> Change references of project MakeConstCS to pick dlls from
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies*.dll
(instead of private build of Roslyn)
-> Open roslyn\src\Samples\Samples.sln
-> Set MakeConstCS to be the startup project and run VS2015.
I can see that assembly MakeConstCS.dll is loaded into VS, but the flow never enters public API of MakeConstCS.DiagnostircAnalyzer class. Of course I do not see the expected warning to be displayed by the sample in Error List dialog of Visual Studio 14.0RoslynDev instance.
For the second run of VS, the assembly is not loaded at all. Until I delete:
C:\Users\AppData\Local\Microsoft\VisualStudio\14.0RoslynDev\ComponentModelCache*.*
which brings me to 1. The *.err file which is there, does not suggest any problem with MakeConstCS.dll.
Menu 'Tools''Extensions and Updates' shows that 'Make Const for C#' is installed and enabled in 14.0RoslynDev instance.
At the same time, I can successfully run and debug ConvertToAutoPropertyCS sample.
Do you have any idea what I am doing wrong ? Is there any known issue with MakeConstCS example ?
What can I do to bring me closer to troubleshoot the issue ?
Thanks
The text was updated successfully, but these errors were encountered:
We need to migrate MakeConstCS and MakeConstVB to be based on our latest analyzer + code fix template project, i.e. needs to have portable analyzer project + unit test project + VSIX project with analyzer asset.
@zuraff You can workaround for now by creating a new analyzer + code fix project from the templates, and copying the contents of MakeConst analyzer/fixer into that project and doing an F5.
mavasani
changed the title
How to run MakeConstCS example in VS2015RC
Migrate MakeConstCS sample to be based off analyzer + codefix template project
Dec 14, 2015
Hi,
I struggle to run/debug MakeConstCS sample in VS2015 RC for some time already.
My steps were:
-> Checkout roslyn code-base (branch releases/VS2015RC)
-> Change references of project MakeConstCS to pick dlls from
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies*.dll
(instead of private build of Roslyn)
-> Open roslyn\src\Samples\Samples.sln
-> Set MakeConstCS to be the startup project and run VS2015.
C:\Users\AppData\Local\Microsoft\VisualStudio\14.0RoslynDev\ComponentModelCache*.*
which brings me to 1. The *.err file which is there, does not suggest any problem with MakeConstCS.dll.
Menu 'Tools''Extensions and Updates' shows that 'Make Const for C#' is installed and enabled in 14.0RoslynDev instance.
At the same time, I can successfully run and debug ConvertToAutoPropertyCS sample.
Do you have any idea what I am doing wrong ? Is there any known issue with MakeConstCS example ?
What can I do to bring me closer to troubleshoot the issue ?
Thanks
The text was updated successfully, but these errors were encountered: