You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Directory.Build.props] Set dummy $(PackageVersion) to appease NuGet (#971)
Context: NuGet/Home#6461
Trying to build `Java.Interop.csproj` in Visual Studio currently
fails with several errors such as:
Error NETSDK1005:
Assets file 'C:\…\xamarin-android\external\Java.Interop\tools\generator\obj\project.assets.json'
doesn't have a target for 'net6.0'.
Ensure that restore has run and that you have included 'net6.0' in the TargetFrameworks for your project.
Even though we don't build NuGet packages, it still attempts to
calculate the NuGet package name, which includes the assembly
`$(Version)` if `$(PackageVersion)` isn't specified.
Because our assemblies have different versions per-TFM (cbd9666,
though note 3851b1a), that causes a problem because the package
can't have multiple versions in it.
Instead, set a dummy `$(PackageVersion)` value because we don't
actually need it.
Additionally, update `generator.slnf` for additional needed projects
to build `generator`.
0 commit comments