Skip to content

VS Studio project errors due to efcore Tasks package #36605

@HKunogi

Description

@HKunogi

Bug description

When using any version past 10.0.0-rc.1.25413.3 of the Microsoft.EntityFrameworkCore.Tasks package, vs studio gives an warning/error about the project referencing it, and makes the project completely unloadable, the error is about the buildTransitive/Microsoft.EntityFrameworkCore.Tasks.props file, and simply replacing the latest package one for the one from the version cited as working, fixes the issue.

Image

Your code

No code is needed to reproduce it.

Stack traces

: error  : The value "
      D:\Packages\NuGet\packages\microsoft.entityframeworkcore.tasks\10.0.0-rc.2.25418.119\tasks\net472\Microsoft.EntityFrameworkCore.Tasks.dll
    " of the "AssemblyFile" attribute in element <UsingTask> is invalid. Illegal characters in path.  D:\Packages\NuGet\packages\microsoft.entityframeworkcore.tasks\10.0.0-rc.2.25418.119\buildTransitive\Microsoft.EntityFrameworkCore.Tasks.props

Verbose output


EF Core version

10

Database provider

No response

Target framework

10

Operating system

Windows 11

IDE

VS Studio 2022 17.14.12 Preview 1.0

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions