I get to start a new contract with a brand new, fast laptop! Hurray! The challenge is to avoid an MSDN license for Visual Studio. This product has a lot of .csproj and .fsproj in a larger solution.
I was able to do work, but ran into a few things that caused me to request and receive a VS license anyways. I’ll note them at the bottom.
Earlier I shared about the challenges I encountered with setting up for Angular development without Visual Studio.
Open at the correct folder, go to the Run and Debug tab, change the top to the project you want to run. The launch.json lists all the projects.
With the solutions explorer, you can find it and right click to run.
Alternatively, If you open the directory, you’ll need a launch.json for that directory
ctrl+shift+b will build
F5 will run with a debugger
You can always use
dotnet run in the command line.
The tests are written with xUnit.
dotnet test from the project file directory works
Use the .NET Core Test Explorer extension
I had to open the folder of the .fsproj to get the F# tests to run in the test explorer.
Jasmine tests run from the command line or they might show up in the Test explorer.
I was able to get on-boarded, fix a few bugs and be productive without Visual Studio for about a month. When I started adding new unit tests, in an unfamiliar code base, I kept getting NullReferenceExceptions. This caused the VS Code Test Explorer extension to stop working and I couldn’t run the test again. I had to re-start VS Code to run the test again. I also found the Test Explorer extension hard to work with across multiple projects and it was slowing me down.
I now have Visual Studio 2022 for DotNet development, sometimes I just use Windows Terminal to start up the api with
dotnet run. I do all of my Angular/web development in VS Code. This is working well for me.
Please consider using Brave and adding me to your BAT payment ledger. Then you won't have to see ads! (when I get to $100 in Google Ads for a payout, I pledge to turn off ads)
Also check out my Resources Page for referrals that would help me.