Generating userfn.js...
Error: Failed to generate userfn.js
at generateFile (C:\Program Files (x86)\ASP.NET Maker 2017\node\node_modules\aspnetmaker\aspnetmaker.js:7:1501)
at Object.<anonymous> (C:\Users\polar\Documents\ASPNETMaker\Templates\aspxv20170\cache\vivians2017.js:161:1)
at Module.compile (module.js:570:32)
at Object.Module.extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)
Compiling vivians2017.css...
Compiling bootstrap.css...
Compiling bootstrap-theme.css...
Compressing ewx.js...
Error: \ewx.js not found.
Problems generating (v2017.0.5)
-
- User
- Posts: 3
Problems generating (v2017.0.5)
-
- User
- Posts: 3
Hi,
The first problem was fixed by your tip (delete cache).
Unfortunately, I now run into a different error, the ones I also received before.
I've set the output of the build.bat file in a text file, (btw I tried generating in core 1.X which immediately gave me the error message that I needed to use core 2.0
Furthermore, I tried 4.52, 4.6 and 4.7 .net but the errors are the same.
I've copied only the --info part and the first error from the restore (the rest are all the same, an error for each package.
C:\Users\polar\Documents\ASPNETMaker\WebSites\Vivians2017>dotnet --info
.NET Command Line Tools (2.0.0)
Product Information:
Version: 2.0.0
Commit SHA-1 hash: cdcd1928c9
Runtime Environment:
OS Name: Windows
OS Version: 10.0.15063
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.0.0\
Microsoft .NET Core Shared Framework Host
Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d
C:\Users\polar\Documents\ASPNETMaker\WebSites\Vivians2017>dotnet restore
Restoring packages for C:\Users\polar\Documents\ASPNETMaker\WebSites\Vivians2017\vivians2017.csproj...
C:\Users\polar\Documents\ASPNETMaker\WebSites\Vivians2017\vivians2017.csproj : error NU1202: Package Microsoft.AspNetCore 2.0.0 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Microsoft.AspNetCore 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
-
- User
- Posts: 9430
Click Tools -> Advanced Settings, check:
- Target framework, select "net461" or "net462" or "net47" according to the .NET Framework installed. Do not try to enter others, it won't work.
- ASP.NET Core version, select "2.0.0".
Make sure you have installed VS2017 or installed NuGet v4.3.0, re-generate the *.csproj and try again.
-
- User
- Posts: 3
Hi,
I tried re-install VS2017.
Tried generating Net4.7
Still receiving the following error(s), just send the first, the rest is all the same but for each all different libraries
C:\Users\polar\Documents\ASPNETMaker\WebSites\Vivians2017>dotnet restore
Restoring packages for C:\Users\polar\Documents\ASPNETMaker\WebSites\Vivians2017\vivians2017.csproj...
C:\Users\polar\Documents\ASPNETMaker\WebSites\Vivians2017\vivians2017.csproj : error NU1202: Package Microsoft.AspNetCore 2.0.0 is not compatible with net47 (.NETFramework,Version=v4.7). Package Microsoft.AspNetCore 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
-
- User
- Posts: 9430
- Make sure your version of VS2017 is the latest version (do not use old version or previously downloaded installer, otherwise it does not support .NET Core 2.0):
https://www.visualstudio.com/thank-you- ... ity&rel=15 - You can also try .NET Core SDK 1.0.4 (LTS). After installation, open command prompt and enter "dotnet --info" to check the version that your PC is using. Change your project to use ASP.NET Core version "1.1.0".
https://github.com/dotnet/core/blob/mas ... archive.md - Make sure you have also installed the .NET Framework 4.x.x AND the corresponding Developer Pack for your selected version of framework.
http://www.hkvstore.com/aspnetmaker/download.asp