Is DNX compatible with MSBuild already? #2207
Comments
To clarify, are you running If you have the Web Development Tools installed in VS 2015, those targets files should have been dropped there properly. |
Ye it sounds like a broken vs install or an older build of vs opening a newer project |
Yes, that's correct. Running msbuild on an .xproj file with project.json. I installed dnvm and installed the dnx runtime environment which was placed into my user profile. So the question is now. The project is marked with: "frameworks": { and most dependencies are marked to 1.0.0-beta4 which is installed (via dnvm). However msbuild doesn't have any of the VisualStudio files installed. Are they suppose to be installed automatically with "msbuild 14.0" or do I need to install another package? |
Right now the DNX MSBuild targets are only installed with Visual Studio 2015 (specifically the Web Development Tools component). |
Is there a reason you are specifically restricted to using MSBuild here? The MSBuild targets basically just execute |
@flyandi are you using TFS 2013 or 2015? |
I know this is a little old now, but I think it's still relevant.
For projects that contain Typescript, the project has a setting "Compile TypeScript on build". This is run by MSBuild, but not by Dnu (or presumably, the new dotnet cli either). So for this reason (and potentially other actions that are only actioned by MSBuild) it's useful to be able to do an MSBuild of the solution. As a side issue, unfortunately, if setting up a build server, installing the MSBuild tools is not enough, you also have to install Visual Studio to get the required targets. It would be much better if there was a seperate install to install the necessary build targets, without having to install VS in my opinion! |
I am trying to get a DNX project compiled with MSBuild, however the build fails with the following error:
error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DNX\Microsoft.DNX.Props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
I followed every instructions but I can't get those files downloaded to the proper directory. Anyone has an hint?
The text was updated successfully, but these errors were encountered: