-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
[VSCode Extension] msbuild cannot find target "Build" for command "Build Project" #1537
Comments
Some more info on the hanging flash command from the extension: In the vscode output console I see a node exception with EACCESS while reading from serial. However I can read and write manually from the command line and I'm in all correct dialout permission groups. I also confirmed that vscode runs as the same user. When building the vsix manually from source, this error does not occur and I can flash the image. Some more info on the missing build target: I figured out, that the build variable <Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets" /> The extension passes
I'm now trying to flash the program, however this also yields more errors. |
More Info: Flashing does not work either, because neither building nor flashing does work with the I'm sorry, but how can it be that a framework is this complicated and buggy for a first time deployment? The documentation was very hard to understand also. I'm having a really hard time using this on Linux AND Windows, partially due to copy paste mistakes like this: https://github.com/nanoframework/nf-VSCodeExtension/blob/main/src/dotnet.ts#L65. |
@MexHigh the VS Code Extension is still an experiment. I does need some love. So, if you are willing to fix those issues, we will be very happy to get some PR! |
Ohh, I didn't knew that the extension is still experimental. It would be nice if there was some kind of warning in the Repos README or at least in the documentation. I'll tinker with it a bit more and create a PR for it if I can get it to work. |
@MexHigh any improvement, including in the README would be great! Thanks a lot! |
Tool
Visual Studio Code extension
Description
I'm trying to build the sample Blinky Project. However, this happens with all projects (even newly created ones).
When running the "nanoFramework: Build Project" command, it fails with the following error:
So basicly, msbuild (mono) cannot find the "Build" target, and it is indeed not there. I don't know how to add this manually.
The Build target is also missing from newly created solutions/projects with the nanoFramework extension.
Additional info:
nanoff
command manually to flash a nanoCLR seems to workHow to reproduce
Expected behaviour
Build is successfull.
Screenshots
Command and its output:
Hanging "Flash device" command (may be relevant):
Aditional context
VS Code Version: 1.92.2
OS: Manjaro Linux
Arch: x64
Nanoframework Extension Version: v1.0.181
Nanoff --version: nanoff 2.5.90+c66e018c48
msbuild --version: 16.10.1.36201
The text was updated successfully, but these errors were encountered: