SAFE.Simplified icon indicating copy to clipboard operation
SAFE.Simplified copied to clipboard

How to run it with .NET 5?

Open mastoj opened this issue 3 years ago • 3 comments

Thank you for this awesome template!

Have you tried it with .NET 5 yet? If so, how do I upgrade it to .NET 5? I tried changing the target framework, but some build error because of missing sdk:

/home/tomas/git/mastoj/simpleshopper/server/Server.fsproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.Web' specified could not be found.

Anything more that I need to change? I did try to create an empty webapi to compare the fsproj file, but couldn't spot any major differences.

mastoj avatar Mar 27 '21 22:03 mastoj

Hi there @mastoj, tbh I am not sure. Maybe removing the web SDK altogether from the server project? I need to check which parts are required for the upgrade and update the dependencies like Fable to v3 along with the packages.

The SAFE.React template is probably a better template to check out because it has the latest bits (Fable v3 and packages) though I think would still need to update the target framework to net5.0

Zaid-Ajaj avatar Mar 27 '21 22:03 Zaid-Ajaj

Link to SAFE.React

https://github.com/Zaid-Ajaj/SAFE.React

As you would expect, this template is more focused on React/Feliz than Elmish (in this template) but adding Elmish should be easy enough if you need it

Zaid-Ajaj avatar Mar 27 '21 22:03 Zaid-Ajaj

Will try the other repo tonight. What I found strange was that when I created a new web api project it referred to the same sdk and that worked, not sure why it doesn’t work for this project.

mastoj avatar Mar 28 '21 06:03 mastoj