C
C#12mo ago
engineertdog

Standard library usage problem

I have a standard library I want to use in my 8.0 and 4.7.2 projects.
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>8.0</LangVersion>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>8.0</LangVersion>
</PropertyGroup>
However, when added as a reference to the Framework project, the class gives errors that the namespace can't be found. And for the 8.0 project, the class is fine, but it won't build.
No description
1 Reply
engineertdog
engineertdogOP12mo ago
I started by trying to multi-target, but realized standard 2.0 supported both I removed the MAUI app and migrated to Blazor Server-side. But the Framework app still can't pull in the standard 2.0 library And removing the reference in the Framework app, building, and re-adding the reference allowed it to work.
Want results from more Discord servers?
Add your server