Closed Aaronontheweb closed 6 years ago
Weird part about this is, I can sometimes compile other Test projects but never the Akka.Cluster.Tests
project I linked to earlier.
This does not look like an msbuild issue, but rather an IDE one. Can you please open the issue against Visual Studio (https://docs.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio-2017)?
Looks like this may have been the root cause of this issue: https://github.com/xunit/xunit/issues/1644
Steps to reproduce
Clone a copy of the Akka.NET project from here: https://github.com/akkadotnet/akka.net
Open the project in Visual Studio or JetBrains Rider.
Select the following project: https://github.com/akkadotnet/akka.net/tree/dev/src/core/Akka.Cluster.Tests
Attempt to build it while the IDE is open.
Expected behavior
Project compiles with no issues and unit tests can be run / debugged from the Visual Studio test runner.
Actual behavior
Looks as though the file gets locked by the Visual Studio
testhost.x86
process.If you try running a command line build, i.e.
c:\akkadotnet\src> dotnet build
you'll see a variation of this error occur from the CLI so long as the IDE is also open at the same time.Environment data
dotnet --version
: 2.0.0VS Info:
OS info:
Windows 10 Pro Version: 1803 OS Build: 17134.112