Skip to content

Visual Studio keeps rebuilding projects that reference CefSharp NuGet packages and build AnyCPU platform #2077

Closed

Description

@ymccready
  • What version of the product are you using?
    57.0.0.0, via Nuget in Visual Studio 2015

  • What architecture x86 or x64?
    AnyCPU

  • On what operating system?
    Win 8.1

  • Are you using WinForms, WPF or OffScreen?
    WPF and OffScreen, but probably applied to WinForms

  • What steps will reproduce the problem?

    • Add Nuget Package for OffScreen (for example) to a new project in VS2015.
    • Add <CefSharpAnyCpuSupport>true</CefSharpAnyCpuSupport> as detailed here: Feature Request - Add AnyCPU Support #1714
    • Build the project: Project builds with success.
    • Build the project again: Project builds again.
  • What is the expected output? What do you see instead?
    The project not rebuild again and be "up-to-date" according to VS.

  • Please provide any additional information below.
    If you set the VS build verbosity to Diagnostic, you will get the following message on the first line of the log when re-building the project:

    1>Project 'CefSharpTest' is not up to date. CopyLocal reference ...\CefSharpTest\bin\Debug\CefSharp.OffScreen.dll' is missing from output location.

    Visual Studio is expecting the dll to be in the output because it did not properly evaluate the references with conditions in the CefSharp.OffScreen.props file

  • Workaround
    I hard coded the references to the dlls in my project and commented the import directives for the .props files. This will probably have to be redone if we upgrade Package versions.

Activity

  1. ymccready commented on Jun 28, 2017

    @ymccready
    ContributorAuthor

    This was also reported in PR #2067 with a viable but incomplete solution.

  2. Kingtwo commented on Jul 6, 2017

    @Kingtwo

    @ymccready But I builded with x86 or x64,And somebody can run,somebody not。I looked up some information,that said:“Cefsharp needs to install VC++ 2013 Redist on the user's computer”。
    So, what's wrong? thank you

  3. merceyz commented on Aug 25, 2017

    @merceyz
    Member

    Fixed in master 2bdaa17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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