I am working on an Angular 4.X project and using Visual Studio 2015 Update 3 as IDE. So far I am able to debug my Typescript code in the browser (mostly Google Chrome) but I want to know if there is a way out using which I can put breakpoints and debug the Typescript right from the Visual Studio itself.
Any help will be appreciated.
This feature is supported only in Visual Studio 2017 you can see how to enable ithere
Related
Context
I was able to debug my source generator in VS 2019 by setting the project properties/debug Launch to Roslyn Component, then the target project combo to one of my consuming project:
Now this feature seems to be missing in VS 2022, I can not create a launch profile using the Launch Profile UI with similar settings.
Question
How can I debug Roslyn source generator in Visual Studio 2022?
I got it working in VS 2022 17.1.0. Follow this instructions:
https://github.com/JoanComasFdz/dotnet-how-to-debug-source-generator-vs2022
Also make sure in the Visual Studio Installer that you have installed the .NET Compiler Platform SDK.
Is it possible to install flutter on VS 2017 IDE? (not Visual Studio Code) I can't seem to find any answer to this, and I really prefer working in VS 2017.
Any help would be appreciated.
Unfortunately, it is not supported yet. You can use VisualStudio as an editor and you'll be able to run the flutter commands in the console to run the app. But you'll lose the debugging and intellisense.
I had Visual Studio 2017 community before and Xamarin templates were there. I installed Visual Studio 2017 enterprise and now I do not see Xamarin templates like:
BlankApp(Xamarin.form Portable) and BlankApp(Native shared)
I have repaired Visual Studio and also updates but still same. Please advise how to fix it if anyone got same issue.
There is some changes on VS 2017 15.6.4, click Mobile App(Xamarin.Forms), and click OK, A window will appear allowing you to choose a Share Project or a .NET Standard:
Here is about the Share Project, and here is about the .Net Standard.
I'm trying to use SystemJS modules in Visual Studio 2013 with TypeScript, but Visual Studio shows errors.
This is my setup:
Installed TypeScript Tools for Microsoft Visual Studio 2013 1.8.5.0
Uninstalled lower versions of TypeScript
Project file (VS 2013 does not support tsconfig.json):
<TypeScriptToolsVersion>1.8</TypeScriptToolsVersion>
<TypeScriptModuleKind >system</TypeScriptModuleKind>
<TypeScriptTarget>es5</TypeScriptTarget>
This is what I see:
My project compiles successfully
In the browser, AngularJs runs successfully
But in Visual Studio, I see squiggly lines. Upon hovering it says 'expression statement is not assignment or call':
This issue is related to this question, however, the answer there is 'use VS 2015', which simply is not an option for me.
Is there any way to use SystemJS with TypeScript in Visual Studio 2013? It doesn't have to be ES6-style modules, just any combination of SystemJS and TypeScript will do. Thanks!
I don't know if you already tried to set SystemJS as module system in the preferences:
If still doesn't work, try to follow this guide: http://www.codeproject.com/Articles/1060262/First-Angular-App-with-TypeScript-and-Visual-Studi
from "Setting Up Visual Studio Project".
By the way, VB 2013 is a very old version of the software, is there any reason why shouldn't you migrate to a newer version?
It seems that there just isn't a solution for this. Upgrading to VS2015 is the only way to fix it.
You may need --allowSyntheticDefaultImports if angular doesn't have a default export.
I originally created an ASP.NET site in Visual Studio 2010 a few years ago and it went through the VS 2010 SP1 update as well. This meant that Visual Studio 2012 opened the solution without performing a one time upgrade.
The issue I am having is that the built-in browser selector in Visual Studio 2012 is not available for this project and the settings only let you use the default browser.
When I looked in the .SLN file, the version line indicates Visual Studio 2012 (i.e. # Visual Studio 2012) and no other setting in there appears to have anything to do with this limitation.
Has anybody had this issue and, if so, can you please let me know how your overcame it?
Thanks!
You're going to have to upgrade your project to allow it to make use of Visual Studio 2012 only features. Note, if you do this you will no longer be able to open your project in earlier versions of VS.
http://msdn.microsoft.com/en-us/library/hh266747%28VS.110%29.aspx
For VS 2010 , you can install WoVS Default Browser Switcher extension
Also a related question Change default browser in Visual Studio 2010 RC