Difficuluties during installation to VS 2017 RC project #1153

Closed
opened 2025-08-09 17:19:04 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @rpokrovskij on 12/27/2016

Create such project - great idea, should be very useful for new "npm users". Thank you. But it is still very hard to understand how it suppose to work.

Could you append documentation or just consult us there with those topics?

  1. Is it possible to get JavaScriptServices project with Target Framework not "Core" but ".NET Framework 4.6.2"?
    a) the way "Installation into existing projects" through nuget "Microsoft.AspNetCore.SpaServices" ?
    b) the yoman way ?
    c) since I can't just switch Target Framework in "Project Properties" (it suggests to change core 1.1 to 1.0 core) may be you can document how it can be safely changed through json files (I know about project.json "frameworks" property, but now I even not sure that project.json suppose to work with new csproj... also I have changed it to "net462"; dotnet restore works but "Project properties" still show "Core" target framework)?

  2. please add some sentence how to check that project is ready (after nuget or yoman install).
    I have a new node_modules folder in project folder with all packages including webpack. But what aslo should be done by yoman script? Even several words will be very useful to describe what should going on.

3a) add to the documentation line that warnings user that he will need to delete .xproj file after migration to .csproj (otherwise dotnet run deny to work).

3b) dotnet run return an error (after first run one, after second another)

PM> dotnet run
dotnet : The specified framework 'Microsoft.NETCore.App', version '1.1.0' was not found.
At line:1 char:1
+ dotnet run
+ ~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (The specified f... was not found.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 

  - Check application dependencies and target a framework version installed at:
      C:\Program Files\dotnet\shared\Microsoft.NETCore.App
  - The following versions are installed:
      1.0.0
      1.0.1
  - Alternatively, install the framework version '1.1.0'.

PM> dotnet run
dotnet : A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 
'D:\cot\Vse\AdminkaV1\Web.Client\bin\Debug\netcoreapp1.1'.
At line:1 char:1
+ dotnet run
+ ~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (A fatal error w...netcoreapp1.1'.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 

Run through visual studio "IIS Express" returns modal error message box "Unable to run your project. The 'RunCommand' property is not defined."

What is wrong?

Info:

PM> dotnet --version
1.0.0-preview4-004233
PM> npm -v
3.10.10

*Originally created by @rpokrovskij on 12/27/2016* Create such project - great idea, should be very useful for new "npm users". Thank you. But it is still very hard to understand how it suppose to work. Could you append documentation or just consult us there with those topics? 1) Is it possible to get JavaScriptServices project with Target Framework not "Core" but ".NET Framework 4.6.2"? a) the way "Installation into existing projects" through nuget "Microsoft.AspNetCore.SpaServices" ? b) the yoman way ? c) since I can't just switch Target Framework in "Project Properties" (it suggests to change core 1.1 to 1.0 core) may be you can document how it can be safely changed through json files (I know about project.json "frameworks" property, but now I even not sure that project.json suppose to work with new csproj... also I have changed it to "net462"; dotnet restore works but "Project properties" still show "Core" target framework)? 2) please add some sentence how to check that project is ready (after nuget or yoman install). I have a new node_modules folder in project folder with all packages including webpack. But what aslo should be done by yoman script? Even several words will be very useful to describe what should going on. 3a) add to the documentation line that warnings user that he will need to delete .xproj file after migration to .csproj (otherwise dotnet run deny to work). 3b) dotnet run return an error (after first run one, after second another) ``` PM> dotnet run dotnet : The specified framework 'Microsoft.NETCore.App', version '1.1.0' was not found. At line:1 char:1 + dotnet run + ~~~~~~~~~~ + CategoryInfo : NotSpecified: (The specified f... was not found.:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError - Check application dependencies and target a framework version installed at: C:\Program Files\dotnet\shared\Microsoft.NETCore.App - The following versions are installed: 1.0.0 1.0.1 - Alternatively, install the framework version '1.1.0'. PM> dotnet run dotnet : A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'D:\cot\Vse\AdminkaV1\Web.Client\bin\Debug\netcoreapp1.1'. At line:1 char:1 + dotnet run + ~~~~~~~~~~ + CategoryInfo : NotSpecified: (A fatal error w...netcoreapp1.1'.:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError ``` Run through visual studio "IIS Express" returns modal error message box "**Unable to run your project. The 'RunCommand' property is not defined.**" What is wrong? **Info:** PM> dotnet --version 1.0.0-preview4-004233 PM> npm -v 3.10.10
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1153
No description provided.