-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Not able to build with VS2019 #3132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello Noemata, thank you for opening an issue with us! I have automatically added a "needs triage" label to help get things started. Our team will investigate the issue and help solve it ASAP. Other community members may also look into the issue and provide feedback 🙌 |
@Noemata there's a weird hard dependency on a specific version of some SDKs that VS doesn't install automatically. :( We're trying to better document this here: https://github.com/windows-toolkit/WindowsCommunityToolkit/pull/3115/files But we also need to try removing our globals.json. If you check the version of the .NET Core 3.0.x SDK you have, make sure to modify the globals.json file to match it. |
FYI @marcpems @Kyaa-dost |
Wow @michael-hawker. You were right. Thank you. My previous dotnet --info was: .NET Core SDK (reflecting any global.json): Runtime Environment: Host (useful for support): .NET Core SDKs installed: .NET Core runtimes installed: And with the installation of dotnet-sdk-3.0.101-win-x64.exe, it now reads: .NET Core SDK (reflecting any global.json): Runtime Environment: Host (useful for support): .NET Core SDKs installed: .NET Core runtimes installed: I suppose the good news is that all the .Net Core SDKs play along with each other. You're welcome to close this issue once the docs are a tad more clear on this requirement, although this is something that perhaps should come along with the VS2019 install payload as a default. |
@Noemata Glad the info provided by Michael helped resolve the problem. We have a PR open in terms of doc instructions and requirements and will be merged soon. |
Closing this as the Doc PR was merged. |
Describe the bug
Not able to build with Visual Studio 2019. All the projects that use "MSBuild.Sdk.Extras" report this error:
Microsoft.Toolkit.Uwp.UI.csproj : error : The expression "[System.IO.Path]::GetDirectoryName('')" cannot be evaluated. The path is not of a legal form. ....nuget\packages\msbuild.sdk.extras\2.0.54\Sdk\Sdk.props
Steps to Reproduce
Steps to reproduce the behavior:
Expected behavior
Projects should load.
Environment
Latest of everything.
The text was updated successfully, but these errors were encountered: