Skip to content

Bug: Can't get src\Samples\NetProjectionSample to build #2119

@JeffMill

Description

@JeffMill

Description

Can't get src\Samples\NetProjectionSample to build

Steps To Reproduce

  • clone the repo.
  • open CppWinRTComponentProjectionSample.sln in Microsoft Visual Studio Enterprise 2022 (64-bit)
  • rebuild solution.
    Result:
Severity Code Description Project File Line
Error (active) NETSDK1005 Assets file 'E:\CsWinRT\src\Samples\NetProjectionSample\SimpleMathProjection\obj\project.assets.json' doesn't have a target for 'net8.0-windows10.0.19041.0'. Ensure that restore has run and that you have included 'net8.0-windows10.0.19041.0' in the TargetFrameworks for your project. SimpleMathProjection C:\Program Files\dotnet\sdk\9.0.307\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets 266

Expected Behavior

should build.

Version Info

cswinrt github 2.2.0

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions