question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

External runners are unreliable

See original GitHub issue

The external runners (Migrate.exe, dotnet fm, msbuild) are unreliable due to several problems around different target frameworks (net461, netstandard1.3, netcoreapp2.0, etc.) and .NET implementations (Framework, Core, Mono).

The current implementation is very naive and just tries to load the assemblies and its dependencies into the current context.

Situations

The following situations can be found:

Executed from project directory

This would probably require us to use the same method, which requires the user to specify the startup project and the target project.

The following things are of interest for us:

  • Microsoft.EntityFrameworkCore.Design (required by dotnet-ef)
  • dotnet-ef

Executed from bin/ directory

This will only work when all dependencies are available, so I suggest that we don’t support this use case.

Executed on published output

Maybe we can use DotNetCorePlugins?

Tools

Every tool should support executing the migrations from the published output and only dotnet-fm and msbuild tasks should support executing migrations from source code.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jzabroskicommented, Nov 5, 2019

@livarcocc has communicated in https://github.com/microsoft/msbuild/issues/4882 that https://github.com/microsoft/msbuild/issues/1309 will be closed and work will focus on https://github.com/microsoft/msbuild/issues/1754

Overall, this is great news. I requested in https://github.com/microsoft/msbuild/issues/1309 that they support more robust .NET Core CLI Tool scenarios.

1reaction
jzabroskicommented, May 23, 2019

Couple of thoughts here based on some fast reading today, that I’d like to share. This might not solve our problems, but is in general good to know as it is part of the overall “knobs we can turn”:

  1. Forcing all PackageReferences in a .NET SDK project file to be included in the bin directory:
    • Example:
    <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
    
  2. Rick Strahl wrote .NET Core SDK Projects: Controlling Output Folders and Content
Read more comments on GitHub >

github_iconTop Results From Across the Web

External Feedback Does Not Affect Running Pace in ...
Many runners receive external feedback, such as running pace, ... False Positive or False Negative Feedback: In the inaccurate feedback ...
Read more >
3 Reasons You Need to Ditch Heart Rate Training
Runners love heart rate training, but it is inaccurate and can be setting you up for failure. Here are 3 things to consider...
Read more >
Adidas Running / Runtastic problems with external HR ...
Adidas Running / Runtastic problems with external HR Bluetooth chest monitor. Hi there, hope someone can help me (or suffers the same issue)....
Read more >
Reliability
Reliability helps us understand the sources of error and how they affect findings in practice and in research. This article defines reliability and...
Read more >
What to Do When Your External Hard Drives Are Not Working
Do you need to open your important documents but cannot access your external storage? Here are common problems with external hard drives and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found