Commit 968e0f5
authored
[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`.1 parent 05eddd9 commit 968e0f5
2 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
11 | 20 | | |
12 | 21 | | |
13 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
0 commit comments