dotnet / dotnet/Scaffolding

The driver calls the worker found in the target project

Open
#1,796 0 comments 0 reactions 0 assignees View on GitHub
area-scaffolding customer-reported
Dominant language
C#
Stars
818
Forks
260
Avg merge
1d 8h
Merged PRs (30d)
10

Description

## File a bug

The driver should call its own version of the worker, just as in the Framework path; the only difference is that the Framework path needs an executable file and the Core path needs a library file. Unfortunately, it is still required that the target refers to the worker assembly; however, in case the reference is wrong, we shall get a neat version mismatch exception rather than a total havoc.

### Include your code

```C#
dotnetCodeGenInsideManPath = context.CompilationAssemblies
.Where(c => Path.GetFileNameWithoutExtension(c.Name)
.Equals(DESIGN_TOOL_NAME, StringComparison.OrdinalIgnoreCase))
.Select(reference => reference.ResolvedPath)
.FirstOrDefault();
```

### Include stack traces

There are none, the worker just hangs :frowning_face:

### Include provider and version information


Microsoft.VisualStudio.Web.CodeGeneration.Design/Microsoft.DotNet.MSIdentity version:
42.42.42.42

Target framework: (e.g. .NET 5.0)
.NET 6.0

Operating system:
Linux x64 5.15.12-1-default

IDE: (e.g. Visual Studio 2019 16.3)
1.63.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.