Build error with .Net 7

After installing .Net 7 on my Windows computer, I get the following error building one of my sample programs:

"C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/MSBuild.exe" -t:Build -p:Configuration=Release "test_led.elements"
MSBuild version 17.4.0+18d5aef85 for .NET Framework
Build started 11/25/2022 5:12:42 PM.
Project "C:\Users\pmunts\src\libsimpleio\elements\dotnet\programs\pascal\simpleio\test_led\test_led.elements" on node 1
 (Build target(s)).
Build:
     Reference 'Echoes' was resolved to 'C:\Program Files (x86)\RemObjects Software\Elements\References\Echoes\NETCore5.0\Echoes.dll' via XML for target 'Echoes'.
     Reference 'Elements' was resolved to 'C:\Program Files (x86)\RemObjects Software\Elements\References\Echoes\NETCore6.0\Elements.dll' via XML for target 'Echoes'.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\RemObjects Software\Elements\RemObjects.Elements.Echoes.targets(53,3): EBuild  error : Package 'libsimpleio:2.2022.312.1' has no deliverable for platform 'netcoreapp 7.0'. [C:\Users\pmunts\src\libsimpleio\elements\dotnet\programs\pascal\simpleio\test_led\test_led.elements]
Done Building Project "C:\Users\pmunts\src\libsimpleio\elements\dotnet\programs\pascal\simpleio\test_led\test_led.elements" (Build target(s)) -- FAILED.

libsimpleio is a .Net Standard 2.0 library package. The whole project is attached.

test_led.zip (32.1 KB)

Sure this message is not simply correct? I can have a check later today, myself.

FWIW, I cannot reproduce this:


D:             Target-specific Settings, after prepare
D:               - <NETStandardVersion = 2.1 [Target: Echoes]>
D:               - <NuGetPlatformName = netcoreapp [Target: Echoes]>
D:               - <NuGetPlatformVersion = 7.0 [Target: Echoes]>
...
D:                      Checking repository https://api.nuget.org/v3/index.json
D:                      | Package libsimpleio found in repository https://api.nuget.org/v3/index.json.
D:                      | Available Versions of 'libsimpleio': 2.2022.312.1, 2.2021.345.1, 2.2021.335.1, 2.2021.334.2, 2.2021.334.1, 2.2021.332.2, 2.2021.332.1, 2.2021.137.1, 2.2021.41.1, 2.2020.345.1, 2.2020.340.2, 2.2020.256.1, 2.2020.136.3, 2.2020.136.2, 2.2020.136.1, 2.2020.113.1, 2.2020.100.2, 2.2020.100.1, 2.2020.99.2, 2.2020.99.1, 2.2020.98.1, 2.2020.94.1, 2.2020.93.1, 2.2020.79.1, 2.2020.78.1, 2.2020.74.1, 2.2020.71.1, 2.2020.70.1, 2.2020.69.1, 2.2020.63.1, 2.2020.41.1, 1.0.7312.24765, 1.0.7179.34054, 1.0.7179.30297, 1.0.7179.17082, 1.0.7179.15969, 1.0.7061.16746, 1.0.7054.20577, 1.0.6999.19057, 1.0.6961.18751, 1.0.6944.35698, 1.0.6940.36618, 1.0.6897.18913, 1.0.6873.20761, 1.0.6869.32063, 1.0.6867.31797, 1.0.6846.22210, 1.0.6841.35287, 1.0.6840.34469, 1.0.6820.36714, 1.0.6819.20325, 1.0.6811.26946, 1.0.6804.29771, 1.0.6802.24009, 1.0.6799.34984, 1.0.6794.20478.
D:                      | Package libsimpleio:2.2022.312.1 found in repository https://api.nuget.org/v3/index.json.
...

                        Adding Reference 'libsimpleio.dll'.
...
    Solution 'ConsoleApplication55' built successfully.
   <- Task RemObjects.EBuild.BuildSolution finished for ConsoleApplication55, took 3.0359s (3.036s).

what could I be missing?

Very strange. I use a local NuGet package feed, so I can test my packages before publishing them. Just now I removed the local feed from NuGet.Config; the Elements build then works.

There appears to be a weird interaction between NuGet.Config, the local Nuget feed, the NuGet and dotnet local caches, and EBuild. I have a script that removes the NuGet and dotnet local caches to produce a pristine build environment. After I have done that, EBuild fails with the local NuGet package feed UNTIL I build a dotnet project (Microsoft, not Elements) that uses libsimpleio. After the libsimpleio package has been cached, EBuild works.

I still think the problem is in EBuild or its subordinates, and their handling of a local NuGet package feed, but at least I have a workaround for now.

Can I see the full “Detailed” level build log (ideally from the commanding with EBuild, or from Water, to avoid any interference from MSBuild) for this failed build, and possibly see what is or isn’t in the local cache folder for libsimpleio?

How have you add the “local NuGet feed” to NuGet.Config, can I see the config?

Suffice to say I never used libsimpleio before here, and did not have it locally cached, and EBuild was able to obtain it clean from from the remote repo…