I have updated to the latest tooling using pac install latest and created my project from the scratch using latest tooling (so its not an upgrade scenario, its a fresh project using the latest CLI v 0.3.4)
My pcfproj, cdsproj and devDependencies files already have got the versions as mentioned here
I can compile the project file using npm run build, but I cannot package it. My issue is when I do
I get an error saying error MSB4066: The attribute "Version" in element <PackageReference> is unrecognized.
Thats the cdsproj node that it is complaining about
Solved! Go to Solution.
One option if you don't want to install the full Visual Studio, is you can download the "Build Tools for Visual Studio 2019" which should be able to compile pcfproj files successfully.
From https://visualstudio.microsoft.com/downloads/, just scroll to the bottom and expand "Tools for Visual Studio 2019" in the "All downloads section" and select "Build Tools for Visual Studio 2019"
@jopursle, I'm still getting the same error after installing the developer tools. Do you know what the path is to the correct version of MSBuild?
Originally, I was getting an error message that MSBuild did not exist, so I put in a reference to it in the Program Files (x86) folder. But I'm not sure that's the correct version or not. Also, all of the articles I find online about the error indicates it's an incorrect version of MSBuild.
@RyanXExner When running the command with the developer tools, are you running it from the "Developer Command Prompt for VS 2019" command prompt? That should have all the paths set correctly.
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
The largest Power BI, Power Platform, and Data conference in New Zealand