Open eNeRGy164 opened 3 years ago
@jamesnk - are you familiar with this problem?
No. I don’t have live unit tests enabled
Can you try it on an empty grpc project? I don't have Windows/VS easily available. If there's a bug here its in Grpc.Tools - we're not doing anything fancy in this repo.
I couldn't reproduce it on an empty solution, even using the Dapr proto files, including shared files and targets.
edit I have the issue now on a smaller slimmed down version.
The effect starts when adding the Directory.Build.props
to the src
and test
directories.
Possible causes I see so far:
I uploaded a repo where LUT does not work, until you remove the 2 .props files (and remove the signed key from the InternalsVisibleTo
attribute in DaprClientGrpc.cs
)
This is only for developer comfort, not an issue using the SDK itself.
I did try to reproduce this behavior on a clean project, but it seems very specific to the Dapr .NET SDK solution.
Expected Behavior
When enabling Live Unit Testing in Visual Studio Enterprise, it should work.
Actual Behavior
Fails with the message
A normal build generates an empty
CommonGrpc.cs
, but a LUT build apparently does not. I'm not sure if this is a Visual Studio LUT or a Grpc.Tools bug. Or maybe just the combination of both.A workaround is to generate the empty file if it is a LUT build.
After this LUT works:
Steps to Reproduce the Problem
Press play in a Visual Studio Enterprise.
Release Note
RELEASE NOTE: FIX Support Live Unit Testing in Visual Studio Enterprise.