Answered by:
a few visual studio code questions

Question
-
User1034446946 posted
I am trying to move over to using visual studio code for c# but i feel a long way from getting it to work
a few questions
if i want to use something like the Azure Functions in my project, do i need to install the nuget package or/and the extension?
if i use a nuget package that doesn't have an extension like gremlin.net do i just use the nuget package?
if i just use the nuget package, is the only way i know its installed is by looking in the .csproj file?
how do i get itellisense to work on the packages? i have tried installing the nuget packages but isn't working for classes or the paramaters, although no errors are showing.
can i and should i sway between visual studio and visual studio code?
Tuesday, May 12, 2020 8:17 PM
Answers
-
User-719153870 posted
Hi EnenDaveyBoy,
EnenDaveyBoy
if i want to use something like the Azure Functions in my project, do i need to install the nuget package or/and the extension?Yes, if you want to create Azure Function in VS Code, the extension "Azure Functions" is required.
In Visual Studio Code, open Extensions and search for azure functions, select Install to install the extension for Visual Studio Code.
EnenDaveyBoy
if i use a nuget package that doesn't have an extension like gremlin.net do i just use the nuget package?Not sure, if the extension is needed then you might change to another nuget package?
EnenDaveyBoy
if i just use the nuget package, is the only way i know its installed is by looking in the .csproj file?Yes.
EnenDaveyBoy
how do i get itellisense to work on the packages? i have tried installing the nuget packages but isn't working for classes or the paramaters, although no errors are showing.Please check VS Code Intellisense doesn't work for nuget packages, you might need to reset your settings and extensions.
EnenDaveyBoy
can i and should i sway between visual studio and visual studio code?VS should provide you a better experience with a Nuget Package Manager UI, i would suggest VS if this matters to you.
Best Regard,
Yang Shen
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, May 13, 2020 4:46 AM -
User-719153870 posted
Hi EnenDaveyBoy,
so I still need the nuget packages for the dll's, extensions are just for the UI?No.
Sorry if I didn't explain clearly before and caused you a misunderstanding.
i ctrl . on the abstarct validator and it says "no code actions available"but all the tutorials i have seen these should workAccording to VSCode hotkeys, Ctrl + . is for Quick Fix, can you provide the tutorials or docs that can help reproduce your issue? And the description of the process you are trying to implement is also not very clear.
Best Regard,
Yang Shen
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, May 14, 2020 4:41 AM
All replies
-
User-719153870 posted
Hi EnenDaveyBoy,
EnenDaveyBoy
if i want to use something like the Azure Functions in my project, do i need to install the nuget package or/and the extension?Yes, if you want to create Azure Function in VS Code, the extension "Azure Functions" is required.
In Visual Studio Code, open Extensions and search for azure functions, select Install to install the extension for Visual Studio Code.
EnenDaveyBoy
if i use a nuget package that doesn't have an extension like gremlin.net do i just use the nuget package?Not sure, if the extension is needed then you might change to another nuget package?
EnenDaveyBoy
if i just use the nuget package, is the only way i know its installed is by looking in the .csproj file?Yes.
EnenDaveyBoy
how do i get itellisense to work on the packages? i have tried installing the nuget packages but isn't working for classes or the paramaters, although no errors are showing.Please check VS Code Intellisense doesn't work for nuget packages, you might need to reset your settings and extensions.
EnenDaveyBoy
can i and should i sway between visual studio and visual studio code?VS should provide you a better experience with a Nuget Package Manager UI, i would suggest VS if this matters to you.
Best Regard,
Yang Shen
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, May 13, 2020 4:46 AM -
User1034446946 posted
so I still need the nuget packages for the dll's, extensions are just for the UI?
at present I have install the nuget package for fluentValidation
i inherit AbstractValidator<SomeClass>
i ctrl . on the abstarct validator and it says "no code actions available"
event is i type
var foo = List<bar>();
and ctrl . over list i have the same error
and on both no errors show, but all the tutorials i have seen these should work
Wednesday, May 13, 2020 2:16 PM -
User-719153870 posted
Hi EnenDaveyBoy,
so I still need the nuget packages for the dll's, extensions are just for the UI?No.
Sorry if I didn't explain clearly before and caused you a misunderstanding.
i ctrl . on the abstarct validator and it says "no code actions available"but all the tutorials i have seen these should workAccording to VSCode hotkeys, Ctrl + . is for Quick Fix, can you provide the tutorials or docs that can help reproduce your issue? And the description of the process you are trying to implement is also not very clear.
Best Regard,
Yang Shen
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, May 14, 2020 4:41 AM -
User1034446946 posted
thanks for the help, i uninstalled vs code and all the setting folder and extensions and re installed it.
and it seems to be working, a few things take a little longer to load which is going to take some getting used to.
Thursday, May 14, 2020 12:43 PM