Closed edouardr closed 6 years ago
Sorry to hear that, I am out of the office today and will be back after lunch tomorrow when I hope I will get time to look at this, unless @Hafeok you have time today?
Have you guys sorted this out? I am getting the same error.
Cannot bind parameter 'Path' to the target. Exception setting "Path": "Cannot find path 'X:\Microsoft.Build.dll' because it does not exist."
@JANeto87 unfortunately no. Could I ask what's your environment?
Because I tried in another computer with similar config and could not reproduce. I am trying to find the difference between working and non working environment.
@edouardr, I am using:
Please see the images below:
System Information
Visual Studio
Microsoft.Net Framework folder
Microsoft.Build in Framework folder
Microsoft.Build disassembled, SolutionFile class not found
Hey,
Can you try and run this form a powershell console? Resolve-Path HKLM:\SOFTWARE\Microsoft\MSBuild\ToolsVersions* | Get-ItemProperty -Name MSBuildToolsPath
This is the way we are resolving the paths to the msbuild directories right now. And i think that if you only have VS 2017 installed it might not support that.
Please, find below:
Yeah, okay - so we need to enable a better way to find the msbuild path, that works with the new VS 2017 structure.
If you want it to work right now, you can install the Microsoft Build Tools 2015 https://www.microsoft.com/en-us/download/details.aspx?id=48159
And ill add a new Issue so that we can it fixed.
The issue is that with the new 2017 installer Microsoft changed the entire eco system of the msbuild installation paths. So we used to lookup the latest installs from the registry, which they changed now.
Anyways the installation of the Microsoft Build Tools should fix it for you.
I've installed MSBuild Tools 2015, but it still doesn't work.
Actually the ability to add visual studio specific modules is not being used, so we will review if this feature should be removed
Discussion moved to #109
User story
In PS console, after having created an empty helix solution, I want to add a new project using
yo helix add:ProjectName
Expected behavior
Project being created with the correct template without errors in the PS console.
Actual behavior
Error is thrown right after executing the command. *.csproj file is created with the App_Config folder, but that's it.
Steps to reproduce the behavior
Create an empty solution:
Add a new project:
The following error is thrown:
Environment
Name : ConsoleHost Version : 5.0.10240.17443 InstanceId : 271dbffe-62b6-4188-9cfd-bc30e5ca132d UI : System.Management.Automation.Internal.Host.InternalHostUserInterface CurrentCulture : en-AU CurrentUICulture : en-US PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy DebuggerEnabled : True IsRunspacePushed : False Runspace : System.Management.Automation.Runspaces.LocalRunspace
PS C:_\test> npm list -g C:\Program Files (x86)\Nodist\bin +-- generator-helix@1.3.2