Developer forum

Forum » CMS - Standard features » Is there any way of working with viewmodel templates on a Mac, running MacOS

Is there any way of working with viewmodel templates on a Mac, running MacOS

Hans Ravnsfjall
Hans Ravnsfjall
Reply

Have asked about this topic earlier, but I am hoping maybe there is some news on this?

Is this possible somehow in a Mac Enviroment - utilizing intelisense, without running paralel desktops?

 

/Hans


Replies

 
Nicolai Pedersen
Reply

Hi Hans

I am affraid there is nothing new for this. See https://doc.dynamicweb.com/forum/development/razor-view-models-intellisense-on-mac

The latest development is this: https://blogs.msdn.microsoft.com/visualstudio/2018/05/07/visual-studio-for-mac-version-7-5-and-beyond/

But I am affraid you will not see intellisense with Dynamicweb.dlls (or any .net dlls not on the .net Core) before we move Dynamicweb to .NET core.

Sorry about the inconvenience.

Nicolai

 
Jimmy Hartington
Jimmy Hartington
Reply
This post has been marked as an answer

I am using the latetst Visual Studio for Mac (not Visual Studio Code) https://visualstudio.microsoft.com/vs/mac/ and have got it to work.

We use Azure DevOps for version control. So from DevOps I copy the clone link.

Clone the repository in Visual Studio for Mac.

The bin folder is not downloaded, so I download the contents of that to my local repository.

Also download the .vs folder from solution.

Now when I open the .sln file in Visual Studio for Mac, I have Intellisense working.

See this video: https://d.pr/v/J7VWLB

 

Votes for this answer: 1
 
Nicolai Pedersen
Reply

Nice! Thanks for sharing. Looks promising.

Dynamicweb 9.10 released just last week has all its core packages as .net standard compatible and we are moving onto .net 5/core. So in a not too far a distance you might even be able to run Dynamicweb on your mac as well!

BR Nicolai

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Very Cool Jimmy 👍🏻

Have a few questions that I hope you don´t mind answering.

Does it have to be a Custom solution, or do you just get the bin folder from the doc portal?

What is the .vs folder?

 

/Hans

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

@Nicolai, that is great news. Any timeframe on that one? Are we talking 6 months, a year - or more?

Any timeframe on Dynamicweb 10?

/Hans

 

 
Jimmy Hartington
Jimmy Hartington
Reply
This post has been marked as an answer

I do not know enough to know if it has to be a custom solution. 
If the bin folder contains the right files to enable Intellisense from the doc portal, then perhaps this is enough.

It seems the .vs folder is settings from Visual Studio. And since some of my colleguaes are on Windows maybe it was created there, when they use Visual Studio and then it is synced to Azure DevOps.
Maybe this is folder is not relevant. 

What I got working now is just for one project to test if it works. And it is more trial and error then concrete knowledge about where the Intellisence for the Dynamicweb is read from laugh

Votes for this answer: 1
 
Nicolai Pedersen
Reply

I think this Microsoft documentation can also help: https://code.visualstudio.com/docs/languages/csharp

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Ok, thank you very mutch :)

/Hans

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

@Nicolai, can you clarify what is needed?

I assume you have to have the bin folder on your local project, for the references and there by - the intellisence so work?

Does it have to be a custom solution you are working on, or is it "enough" to copy the bin folder from the same version, to your local folder?

We use GitHub for version control, and typically we just copy the relevant designfolder to the repository, and put everything in that - and work from there.

/Hans

 
Nicolai Pedersen
Reply

I do not know anything that is not in the MS docs. It is a very precise description, so try to follow that and see what happens.

 

 

You must be logged in to post in the forum