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
{{ message }}
Repository navigation
build-test.sh failing (MSB4062: The "Microsoft.CodeAnalysis.BuildTasks.Csc" task could not be loaded... Assembly with same name is already loaded) #12834
Did your failures look like this, by any chance? If so I am seeing this too.
/home/andy/repos/coreclr/.packages/microsoft.net.compilers.toolset/3.2.0-beta2-19272-03/tasks/netcoreapp2.1/Microsoft.CSharp.Core.targets(59,5): error MSB4062: The "Microsoft.CodeAnalysis.BuildTasks.Csc" task could not be loaded from the assembly /home/andy/repos/coreclr/.packages/microsoft.net.compilers.toolset/3.2.0-beta2-19272-03/build/../tasks/netcoreapp2.1/Microsoft.Build.Tasks.CodeAnalysis.dll. Assembly with same name is already loaded Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [/home/andy/repos/coreclr/tests/src/CoreMangLib/system/delegate/VSD/OpenDelegate.csproj]
/home/stmaclea/git/coreclr/.packages/microsoft.net.compilers.toolset/3.2.0-beta2-19272-03/tasks/netcoreapp2.1/Microsoft.CSharp.Core.targets(59,5): error MSB4062:
The "Microsoft.CodeAnalysis.BuildTasks.Csc" task could not be loaded from the assembly
/home/stmaclea/git/coreclr/.packages/microsoft.net.compilers.toolset/3.2.0-beta2-19272-03/build/../tasks/netcoreapp2.1/Microsoft.Build.Tasks.CodeAnalysis.dll.
Assembly with same name is already loaded Confirm that the <UsingTask> declaration is
correct, that the assembly and all its dependencies are available, and that the task contains
a public class that implements Microsoft.Build.Framework.ITask. [/home/stmaclea/git/coreclr/tests/src/JIT/Methodical/Arrays/lcs/_dbglcsmixed.csproj]
changed the title [-]build-test.sh failing [/-][+]build-test.sh failing (MSB4062: The "Microsoft.CodeAnalysis.BuildTasks.Csc" task could not be loaded... Assembly with same name is already loaded)[/+]on Jun 11, 2019
@jashook could you make sure you also build the product first (with /nodeReuse:false)?
I think this started happening after we took an update from arcade (0b520b3) which included updating to a newer compiler toolset (11fa382) such that it is no longer the same version as that used by BuildTools. My guess is that since the scripts don't specify /nodeReuse:false (for Unix - Windows scripts do), the nodes that already have a different version loaded get reused, resulting in the failure.
Activity
AndyAyersMS commentedon Jun 7, 2019
Did your failures look like this, by any chance? If so I am seeing this too.
elinor-fung commentedon Jun 7, 2019
@sdmaclea do you happen to know what your were synced to before updating to tip?
sdmaclea commentedon Jun 7, 2019
This is the error I am seeing
It seems to match @AndyAyersMS error.
When trying to reproduce, it worked w/o error when running
./build-test.sh, but reappeared after cleaning.So perhaps (strangely) this works
For reference
b5199390c5be46 is what I downloaded last night.I do not have a reference for the last working version. I updated from 96e8c58
adamsitnik commentedon Jun 8, 2019
Same here, I tried to run in on ARM64 and got following error:
The folder with logs is empty because the code fails when it tries to create the logger.
elinor-fung commentedon Jun 11, 2019
@sdmaclea @AndyAyersMS could you see if the same errors still occur if you build the product with
/nodeReuse:false:@adamsitnik that looks to be a different issue.
[-]build-test.sh failing [/-][+]build-test.sh failing (MSB4062: The "Microsoft.CodeAnalysis.BuildTasks.Csc" task could not be loaded... Assembly with same name is already loaded)[/+]adamsitnik commentedon Jun 11, 2019
@elinor-fung thanks! I have created a new issue then: https://github.com/dotnet/coreclr/issues/25072
jashook commentedon Jun 11, 2019
@elinor-fung from two runs /nodeReuse:false seems to fix the issue.
Building more to verify.
jashook commentedon Jun 11, 2019
Seems like a few more builds confirm nodeReuse fixes the problem.
jashook commentedon Jun 11, 2019
Putting out a pr.
elinor-fung commentedon Jun 11, 2019
@jashook could you make sure you also build the product first (with
/nodeReuse:false)?I think this started happening after we took an update from arcade (0b520b3) which included updating to a newer compiler toolset (11fa382) such that it is no longer the same version as that used by BuildTools. My guess is that since the scripts don't specify
/nodeReuse:false(for Unix - Windows scripts do), the nodes that already have a different version loaded get reused, resulting in the failure.jashook commentedon Jun 11, 2019
Change will include nodeReuse:false in both build.sh and build-test.sh by default to match windows scripts.
AndyAyersMS commentedon Jun 11, 2019
@elinor-fung finally got around to retrying, and it looks like
/node-reuse:falseworks for me....