-
Notifications
You must be signed in to change notification settings - Fork 585
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
Cannot build for arm32 when use System.Device.Gpio in dotnet core preview 7 Web Application project. #646
Comments
Can you please share a binlog of your project to try to see what is going on? To produce one, please run the following on a developer command prompt: |
@yan0lovesha please also share |
This is the correct binlog file. |
The binlog that you provided doesn't have any warnings or errors about package downgrade, and they also don't have System.Device.Gpio as a reference. How are you trying to add the dependency to your project? Can you manually add the reference by editing the .csproj and then do a |
I think sharing csproj + commands you are using to build and run (also mention OS and architecture of what was run where) should help us investigate |
Sorry, I think I attached a wrong binlog file yesterday. That was generated before I add gpio reference. This one is the one with error message. The command I am using to build is: |
Ok I know what is going on. This isn't a problem with System.Device.Gpio package, it is actually caused by a NuGet bug and the fact that we don't yet have a good silent workaround in the sdk. Even if you remove the System.Device.Gpio package reference and try to rebuild with <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Blazor.Server" Version="3.0.0-preview7.19365.7" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.0.0-preview7.19365.7" />
<PackageReference Include="System.Device.Gpio" Version="0.1.0-prerelease.19376.1" />
<PackageReference Include="Microsoft.NetCore.Targets" Version="2.1.0" /> <!-- Add this reference to your project -->
</ItemGroup> That would fix the issue. The two bugs I pointed you at (the nuget and the sdk bug) would need to get fixed in order for you not to need to add manually this package. |
I want to use System.Device.Gpio in a Asp.Net core WebAssembly project. I am using dotnet core preview 7. The repro steps are as below:
Then I see the error like "detected package downgrade from 4.3.0 to 4.0.1"
The text was updated successfully, but these errors were encountered: