Developer forum

Forum » Development » Razor View Models intellisense on MAC

Razor View Models intellisense on MAC

Hans Ravnsfjall
Hans Ravnsfjall
Reply

Ok, hopefully I wont get shot for asking this question, and this is probably a long shot.

But I hope someone can help me. I am originally a frontend developer, slowly working my way towards more advanced stuff.

Case is, I am working on a APPLE MAC enviroment, and want to start using the intellisense of vievmodels when working with razor templates, also when I work remote via FTP. As far as I can see, the only way to do this is to use  Visual Studio Code  as it is the only IDE/Editor on MAC that can connect remote and has extension packages for C#/Razor intellisence etc. I have installed Node.js and Npm like this guide tells me to do https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp , but I canĀ“t get it to work.

 

I have tried following this guide, with no luck http://doc.dynamicweb.com/template-tags/introduction/concept/razor-templates-viewmodels

 

Does intellisence not work when connecting to a solution remote, or does someone have some suggestions on how I can get it to work?

 

Visual Studio for MAC does not support FTP/Remote connection, so I am afraid that is not an option. Switching to windows is not an option.

 

All help is appreciated.

 

Br.

 

Hans


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Hans

To get intellisense, Visual Studio needs to understand and read the API to show you the intellisense. So you cannot just open a file in Razor and get intellisense - you also need references to the API that gives you that intellisense.

.NET does not run on MAC (unless Mono supported or the new DNX) and I am not sure you can get intellisense for Dynamicweb.dlls using VS Code for mac.

You might be able to use this article:

https://stackoverflow.com/questions/34467249/intellisense-doesnt-work-in-visual-studio-code-on-mac

Our own frontend developers that use their macs for development, have Windows installed as well and operates in Visual Studio on those.

As the .NET stakc works these days, MACs only have limited support. As .NET core evolves and takes over, you will see it work much more similar on all 3 platforms (Windows, Mac, Linux). But not quite yet...

BR Nicolai

Votes for this answer: 1
 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Ok, thank you very much Nicolai

If anyone by chance has got this to work in a MAC enviroment, please let me know :)

 

br

 

Hans

 
Mikkel Toustrup Olsen
Reply

Hi Hans,

I am using a Windows laptop at work, though I have a macbook at home.

I can try an dig into it during this week and see if I can get it to work :)

BR Hans

 

 

You must be logged in to post in the forum