You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
[15:40:32.665 Error] System.IO.FileNotFoundException: Could not find file 'D:\github\eNeRGy164\dapr\dotnet-sdk.vs\all.sln\v16\lut\7304\i\Dapr.Client\netcoreapp3.1\dapr\proto\common\v1\CommonGrpc.cs'.
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.
The text was updated successfully, but these errors were encountered:
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:
Signed assembly
Internals visible with signed assembly
Different output path
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.
The text was updated successfully, but these errors were encountered: