Remove bundled nanoff in VSCode extension and use system install of nanoff tool #909
Replies: 5 comments
-
I think as a quick win we could add some logic to use So something like:
Thoughts? |
Beta Was this translation helpful? Give feedback.
-
Can we "bundle" the install off nanoff dotnet tool in the extension? Like running the install command as one of the install steps, or at launch? |
Beta Was this translation helpful? Give feedback.
-
Currently, the extension already comes bundled with nanoff. Looks like the issue is not related to nanoff, but more related to the way we're invoking it. |
Beta Was this translation helpful? Give feedback.
-
I think that makes sense and will make things transparent and easy.
That's also an option. Now, when all is in the extension, it's quite straight forward and no brainer. |
Beta Was this translation helpful? Give feedback.
-
@LiamSho please check v1.0.41. It should work smoothly for you now. |
Beta Was this translation helpful? Give feedback.
-
nanoFramework area: Visual Studio Code Extension
Problem
I am working on a M1 chip powered MacBook. From .NET 6,
dotnet
command will runarm64(native)
version of .NET installed in/use/local/share/dotnet/dotnet
, To run some thing withx64(rosseta)
, you need to run/use/local/share/dotnet/x64/dotnet
. So I make an alias and usedotnetx64
to run/use/local/share/dotnet/x64/dotnet
and install nanoff global tool with this command and it works.When deploy bin file to device. The extension will try to run a command like this:
In my case it will just throw an error like this:
The framework 'Microsoft.NETCore.App', version '5.0.0' (arm64) was not found.
.NET 5 do not have a amr64 version and I only install .NET 6 in arm64 but .NET 5 and 6 in x64.
I have two ways to fix this problem.
dotnet
todotnetx64
or/use/local/share/dotnet/x64/dotnet
dotnet /PATH_TO_PLUGIN/nanoff.dll
tonanoff
Solution
In my opinion, just remove the bundled nanoff and use the system install of nanoff tool is OK. The size of nanoff tool is pretty large, and most of developers will have a global install of it.
It will resolve my problem and also make the size of the plugin much smaller.
Beta Was this translation helpful? Give feedback.
All reactions