Skip to content

NetCore - Reference assemblies not generated when building with VS2022 #4558

@developersthinksmartbox

Description

Is there an existing issue for this?

  • I have searched both open/closed issues, no issue already exists.

CefSharp Version

114.2.12

Operating System

Windows 10

Architecture

x64

.Net Version

netcoreapp3.1

Implementation

WinForms

Reproduction Steps

Run the build script with the following args:

./build.ps1 -Target vs2022 -TargetFramework NetCore -BuildArches "x86 x64"

Package restore and compilation steps complete successfully.
Error on packing via nuspec files:

Attempting to build package from 'CefSharp.Common.NETCore.nuspec'.
Could not find a part of the path 'C:\Dev\other_source\CefSharp\CefSharp\bin.netcore\Release\netcoreapp3.1\ref'.
Attempting to build package from 'CefSharp.WinForms.NETCore.nuspec'.
Could not find a part of the path 'C:\Dev\other_source\CefSharp\CefSharp.WinForms\bin.netcore\Release\netcoreapp3.1\ref'.
Attempting to build package from 'CefSharp.Wpf.NETCore.nuspec'.
Could not find a part of the path 'C:\Dev\other_source\CefSharp\CefSharp.Wpf\bin.netcore\Release\netcoreapp3.1\ref'.
Attempting to build package from 'CefSharp.OffScreen.NETCore.nuspec'.
Could not find a part of the path 'C:\Dev\other_source\CefSharp\CefSharp.OffScreen\bin.netcore\Release\netcoreapp3.1\ref'.

Expected behavior

The nuspec files state that the reference assemblies should be available from the bin.netcore folders for various projects.

Actual behavior

The reference assemblies are not available from the bin.netcore folders.

Regression?

No response

Known Workarounds

No response

Does this problem also occur in the CEF Sample Application

Yes using WPF/OffScreen command line args

Other information

The csproj files have the ProduceReferenceAssembly attribute but, I believe, are missing the ProduceReferenceAssemblyInOutDir required to copy them to the bin folder.

If I'm correct I'm more than happy to submit a PR to correct this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions