mbdavid / DotVue

Implement .vue file handler in .NET with server ViewModel postback
77 stars 15 forks source link

on visual studio 2019 on mac #6

Open jorgeleo opened 5 years ago

jorgeleo commented 5 years ago

Awesome project!

I tried this on visual studio 2019 on mac community edition and it needs a couple of fixes:

  1. Not all the *.vue components are marked "Embedded Resource". Simple fix.
  2. In mac the path separator is "/". Just modify the third line of code in the Config.AddWebFiles method to look like this:

var name = file.Name ?? ComponentLoader.GetName(path.Replace(@"\", ".").Replace("/", "."));

The login sample still does not load, but I'll figure it out later.

Again, awesome project!

bbqchickenrobot commented 5 years ago

You should contribute the fixes as a pull request ;)