I wrote an asp.net website in Visual Studio on my Windows laptop. A colleague with a MAC wants me to send to him, so he can recompile it with Visual Studio on his Mac laptop. Will this work?
So long as the app is .NET Core, there is no reason why not - the compiler is a separate tool bundled in with VS. There is one sure way to find out.....
Member
55 Points
70 Posts
If I write code in Visual Studio for windows, can VS for Mac recompile it?
Feb 09, 2021 11:08 AM|Gaston Leblanc|LINK
I wrote an asp.net website in Visual Studio on my Windows laptop. A colleague with a MAC wants me to send to him, so he can recompile it with Visual Studio on his Mac laptop. Will this work?
Thanks
All-Star
194486 Points
28078 Posts
Moderator
Re: If I write code in Visual Studio for windows, can VS for Mac recompile it?
Feb 09, 2021 11:32 AM|Mikesdotnetting|LINK
So long as the app is .NET Core, there is no reason why not - the compiler is a separate tool bundled in with VS. There is one sure way to find out.....
All-Star
48510 Points
18072 Posts
Re: If I write code in Visual Studio for windows, can VS for Mac recompile it?
Feb 09, 2021 11:58 AM|PatriceSc|LINK
Hi,
Depends on which ASP.NET version you are using. ASP.NET 4.x won't work.
For ASP.NET Core, see what is supported for your version at https://docs.microsoft.com/en-us/visualstudio/mac/net-core-support?view=vsmac-2019 and/or for download details at https://dotnet.microsoft.com/download/dotnet-core
If it seems it should work try and see which other issues you may have (for example having to install a db softxware or whatever).