Asked by:
moles compiler returned error while compiling the generated code (-1007 - 0xfffffc11)

Question
-
Any ideas why I getting these errors when trying to generate a moles file?
Moles: processing BusinessLayer.moles - parsing moles file
Moles: processing BusinessLayer.moles - resolving assembly locations
output path: C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests
intermediate path: C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles
compilation hash file or generated assemblies not found
Moles: processing BusinessLayer.moles - generating mole types and stub types
>C:\Program Files\Microsoft Moles\bin\moles.exe "C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.g.vs.moles" /disabledeploy /toolsversion:4.0 /intermediatepath:"C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles" /msbuildpath:C:\Windows\Microsoft.NET\Framework\v4.0.30128\msbuild.exe /outputpath:"C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests"
Microsoft Moles v0.92.50603.1 - http://research.microsoft.com/pex - .net v4.0.30128
Copyright (c) Microsoft Corporation 2007-2010. All rights reserved.
00:00:00.00> moles
[code] output assembly name: BusinessLayer.Moles
[code] visibility: exported or assembly(BusinessLayer.Moles)
[metadata] loading C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\ClassLibraryProjects\BusinessLayer\bin\Debug\BusinessLayer.dll
[code] found 75 types
00:00:01.08> code generation
[code] generating code at C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.cs
00:00:01.20> stubs generation
[code] generated 48 stub types
00:00:01.76> moles generation
[code] generated 56 mole types
00:00:03.81> compiling
!error! [tests] test project compilation failed with exit code 1
Build started 6/24/2010 9:05:33 AM.
Project "C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj" on node 1 (default targets).
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
C:\Windows\Microsoft.NET\Framework\v4.0.30128\Csc.exe /noconfig /unsafe+ /nowarn:1587,1591,1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /doc:bin\Release\\BusinessLayer.Moles.xml /define:TRACE /reference:"C:\Program Files (x86)\Common Files\Microsoft Shared\ExtendedReflection\0.92.50603.1\bin\Microsoft.ExtendedReflection.dll" /reference:mmf="C:\Program Files\Microsoft Moles\PublicAssemblies\Microsoft.Moles.Framework.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.Linq.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Drawing.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Runtime.Remoting.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Runtime.Serialization.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Transactions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.dll" /reference:sxl="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.Linq.dll" /reference:wmsngssgbl="C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\ClassLibraryProjects\BusinessLayer\bin\Debug\BusinessLayer.dll" /reference:"C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\ClassLibraryProjects\DataLayer\bin\Debug\DataLayer.dll" /reference:"C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceShared\ClassLibraryProjects\BusinessLayer.Types\bin\Debug\BusinessLayer.Types.dll" /reference:wmssbltxs="C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\ClassLibraryProjects\BusinessLayer\bin\Debug\BusinessLayer.Types.XmlSerializers.dll" /reference:"C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceShared\ClassLibraryProjects\Utilities\bin\Debug\Utilities.dll" /debug:pdbonly /optimize+ /out:obj\Release\BusinessLayer.Moles.dll /target:library BusinessLayer.Moles.g.cs "C:\Users\blindberg\AppData\Local\Temp\1\.NETFramework,Version=v4.0.AssemblyAttributes.cs"
BusinessLayer.Moles.g.cs(17,1): error CS0430: The extern alias 'wmssblt' was not specified in a /reference option [C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj]
BusinessLayer.Moles.g.cs(16,1): error CS0430: The extern alias 'wmsngssgdl' was not specified in a /reference option [C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj]
Done Building Project "C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj" (default targets) -- FAILED.
Build FAILED.
"C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj" (default target) (1) ->
(CoreCompile target) ->
BusinessLayer.Moles.g.cs(17,1): error CS0430: The extern alias 'wmssblt' was not specified in a /reference option [C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj]
BusinessLayer.Moles.g.cs(16,1): error CS0430: The extern alias 'wmsngssgdl' was not specified in a /reference option [C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj]
0 Warning(s)
2 Error(s)
Time Elapsed 00:00:00.41
00:00:04.41> moles generator 1 errors, 0 warnings
moles compiler returned error while compiling the generated code (-1007 - 0xfffffc11)
Moles: processing BusinessLayer.moles - generation finished
moles generation failedThursday, June 24, 2010 4:20 PM
All replies
-
This is a bug in your code generation. To workaround the issue, add the following node in the .moles file:
<Moles ...>
<Assembly .. />
<CodeStyle DisableUniqueAlias="true" />
Jonathan "Peli" de Halleux - Follow Pex and Moles on Facebook!Thursday, June 24, 2010 10:24 PM -
The compilation still fails with the following errors. One of the referenced projects uses the sgen.exe utility to generate a XmlSerializer class at runtime, is this causing the error?
Build FAILED.
"C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj" (default target) (1) ->
(CoreCompile target) ->
BusinessLayer.Moles.g.cs(17012,81): error CS0433: The type 'Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializer1' exists in both 'c:\Program Files\Microsoft Moles\PublicAssemblies\Microsoft.Moles.Framework.dll' and 'C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\ClassLibraryProjects\BusinessLayer\bin\Debug\BusinessLayer.Types.XmlSerializers.dll' [C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj]
BusinessLayer.Moles.g.cs(17621,77): error CS0433: The type 'Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializer1' exists in both 'c:\Program Files\Microsoft Moles\PublicAssemblies\Microsoft.Moles.Framework.dll' and 'C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\ClassLibraryProjects\BusinessLayer\bin\Debug\BusinessLayer.Types.XmlSerializers.dll' [C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj]
0 Warning(s)
2 Error(s)
Time Elapsed 00:00:00.39
00:00:03.36> moles generator 1 errors, 0 warnings
moles compiler returned error while compiling the generated code (-1007 - 0xfffffc11)
Moles: processing BusinessLayer.moles - generation finished
moles generation failed
build success: WMS.NG.UnitTest.Compatibility
-- Moles update finishedThursday, June 24, 2010 10:54 PM -
I see that's problematic. In the next release we will make that type internal. Meanwhile you can add type filters to skip generated moles/stub for that type
<Moles ...
<StubGeneration ...
<Types>
<Remove TypeName="XmlSerializer1" />
</Types>
<MoleGeneration>
<Types>
<Remove TypeName="XmlSerializer1" />
</Types>
</MoleGeneration>
Jonathan "Peli" de Halleux - Follow Pex and Moles on Facebook!Thursday, June 24, 2010 11:42 PM -
The xml serializer type will be internal in the next release. Still tracking the other isse - why aliases are not properly propagated to the project.
Jonathan "Peli" de Halleux - Follow Pex and Moles on Facebook!Friday, June 25, 2010 2:53 PM -
After adding the type filters to skip the generated moles/stub for the type I am still getting the same error. Here is what the .moles file looks like.
<?xml version="1.0" encoding="utf-8" ?>
<Moles xmlns="http://schemas.microsoft.com/moles/2010/">
<Assembly Name="BusinessLayer" />
<CodeStyle DisableUniqueAlias="true" />
<StubGeneration>
<Types>
<Remove TypeName="Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializer1" />
</Types>
</StubGeneration>
<MoleGeneration>
<Types>
<Remove TypeName="Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializer1" />
</Types>
</MoleGeneration>
</Moles>And here is the errors at compile time.
Build FAILED.
"C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj" (default target) (1) ->
(CoreCompile target) ->
BusinessLayer.Moles.g.cs(17012,81): error CS0433: The type 'Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializer1' exists in both 'c:\Program Files\Microsoft Moles\PublicAssemblies\Microsoft.Moles.Framework.dll' and 'C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\ClassLibraryProjects\BusinessLayer\bin\Debug\BusinessLayer.Types.XmlSerializers.dll' [C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj]
BusinessLayer.Moles.g.cs(17621,77): error CS0433: The type 'Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializer1' exists in both 'c:\Program Files\Microsoft Moles\PublicAssemblies\Microsoft.Moles.Framework.dll' and 'C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\ClassLibraryProjects\BusinessLayer\bin\Debug\BusinessLayer.Types.XmlSerializers.dll' [C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj]
0 Warning(s)
2 Error(s)
Time Elapsed 00:00:00.57
00:00:03.63> moles generator 1 errors, 0 warnings
moles compiler returned error while compiling the generated code (-1007 - 0xfffffc11)
Moles: processing BusinessLayer.moles - generation finished
moles generation failedThanks for your help
Friday, June 25, 2010 4:19 PM -
Try this:
<?xml version="1.0" encoding="utf-8" ?>
<Moles xmlns="http://schemas.microsoft.com/moles/2010/">
<Assembly Name="BusinessLayer" />
<CodeStyle DisableUniqueAlias="true" />
<StubGeneration>
<Types>
<Remove Namespace="Microsoft.Xml.Serialization.GeneratedAssembly" TypeName="XmlSerializer" />
</Types>
</StubGeneration>
<MoleGeneration>
<Types>
<Remove Namespace="Microsoft.Xml.Serialization.GeneratedAssembly" TypeName="XmlSerializer" />
</Types>
</MoleGeneration>
</Moles>
Jonathan "Peli" de Halleux - Follow Pex and Moles on Facebook!Friday, June 25, 2010 5:32 PM -
I'm still getting the same error shown below.
.moles.xml file looks like this
<?xml version="1.0" encoding="utf-8" ?>
<Moles xmlns="http://schemas.microsoft.com/moles/2010/">
<Assembly Name="BusinessLayer" />
<CodeStyle DisableUniqueAlias="true" />
<StubGeneration>
<Types>
<Remove Namespace="Microsoft.Xml.Serialization.GeneratedAssembly" TypeName="XmlSerializer" />
</Types>
</StubGeneration>
<MoleGeneration>
<Types>
<Remove Namespace="Microsoft.Xml.Serialization.GeneratedAssembly" TypeName="XmlSerializer" />
</Types>
</MoleGeneration>
</Moles>I also tried
<?xml version="1.0" encoding="utf-8" ?>
<Moles xmlns="http://schemas.microsoft.com/moles/2010/">
<Assembly Name="BusinessLayer" />
<CodeStyle DisableUniqueAlias="true" />
<StubGeneration>
<Types>
<Remove Namespace="Microsoft.Xml.Serialization.GeneratedAssembly" TypeName="XmlSerializer1" />
</Types>
</StubGeneration>
<MoleGeneration>
<Types>
<Remove Namespace="Microsoft.Xml.Serialization.GeneratedAssembly" TypeName="XmlSerializer1" />
</Types>
</MoleGeneration>
</Moles>and this
<?xml version="1.0" encoding="utf-8" ?>
<Moles xmlns="http://schemas.microsoft.com/moles/2010/">
<Assembly Name="BusinessLayer" />
<CodeStyle DisableUniqueAlias="true" />
<StubGeneration>
<Types>
<Remove Namespace="BusinessLayer.Types.XmlSerializers" TypeName="XmlSerializer" />
</Types>
</StubGeneration>
<MoleGeneration>
<Types>
<Remove Namespace="BusinessLayer.Types.XmlSerializers" TypeName="XmlSerializer" />
</Types>
</MoleGeneration>
</Moles>Here are the moles compilation errors.
Moles: processing BusinessLayer.moles - parsing moles file
Moles: processing BusinessLayer.moles - resolving assembly locations
output path: C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests
intermediate path: C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles
moles assembly BusinessLayer.Moles.dll not found
compilation hash file or generated assemblies not found
Moles: processing BusinessLayer.moles - generating mole types and stub types
>C:\Program Files\Microsoft Moles\bin\moles.exe "C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.g.vs.moles" /disabledeploy /toolsversion:4.0 /intermediatepath:"C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles" /msbuildpath:C:\Windows\Microsoft.NET\Framework\v4.0.30128\msbuild.exe /outputpath:"C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests"
Microsoft Moles v0.92.50603.1 - http://research.microsoft.com/pex - .net v4.0.30128
Copyright (c) Microsoft Corporation 2007-2010. All rights reserved.
00:00:00.00> moles
[code] output assembly name: BusinessLayer.Moles
[code] visibility: exported or assembly(BusinessLayer.Moles)
[metadata] loading C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\ClassLibraryProjects\BusinessLayer\bin\Debug\BusinessLayer.dll
[code] found 75 types
00:00:00.62> code generation
[code] generating code at C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.cs
00:00:00.74> stubs generation
[code] generated 48 stub types
00:00:01.38> moles generation
[code] generated 56 mole types
00:00:03.14> compiling
!error! [tests] test project compilation failed with exit code 1
Build started 6/29/2010 3:50:26 PM.
Project "C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj" on node 1 (default targets).
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
C:\Windows\Microsoft.NET\Framework\v4.0.30128\Csc.exe /noconfig /unsafe+ /nowarn:1587,1591,1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /doc:bin\Release\\BusinessLayer.Moles.xml /define:TRACE /reference:"C:\Program Files (x86)\Common Files\Microsoft Shared\ExtendedReflection\0.92.50603.1\bin\Microsoft.ExtendedReflection.dll" /reference:"C:\Program Files\Microsoft Moles\PublicAssemblies\Microsoft.Moles.Framework.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.Linq.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Drawing.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Runtime.Remoting.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Runtime.Serialization.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Transactions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.Linq.dll" /reference:"C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\ClassLibraryProjects\BusinessLayer\bin\Debug\BusinessLayer.dll" /reference:"C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\ClassLibraryProjects\DataLayer\bin\Debug\DataLayer.dll" /reference:"C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceShared\ClassLibraryProjects\BusinessLayer.Types\bin\Debug\BusinessLayer.Types.dll" /reference:"C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\ClassLibraryProjects\BusinessLayer\bin\Debug\BusinessLayer.Types.XmlSerializers.dll" /reference:"C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceShared\ClassLibraryProjects\Utilities\bin\Debug\Utilities.dll" /debug:pdbonly /optimize+ /out:obj\Release\BusinessLayer.Moles.dll /target:library BusinessLayer.Moles.g.cs "C:\Users\blindberg\AppData\Local\Temp\1\.NETFramework,Version=v4.0.AssemblyAttributes.cs"
BusinessLayer.Moles.g.cs(17012,81): error CS0433: The type 'Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializer1' exists in both 'c:\Program Files\Microsoft Moles\PublicAssemblies\Microsoft.Moles.Framework.dll' and 'C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\ClassLibraryProjects\BusinessLayer\bin\Debug\BusinessLayer.Types.XmlSerializers.dll' [C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj]
BusinessLayer.Moles.g.cs(17621,77): error CS0433: The type 'Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializer1' exists in both 'c:\Program Files\Microsoft Moles\PublicAssemblies\Microsoft.Moles.Framework.dll' and 'C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\ClassLibraryProjects\BusinessLayer\bin\Debug\BusinessLayer.Types.XmlSerializers.dll' [C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj]
Done Building Project "C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj" (default targets) -- FAILED.
Build FAILED.
"C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj" (default target) (1) ->
(CoreCompile target) ->
BusinessLayer.Moles.g.cs(17012,81): error CS0433: The type 'Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializer1' exists in both 'c:\Program Files\Microsoft Moles\PublicAssemblies\Microsoft.Moles.Framework.dll' and 'C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\ClassLibraryProjects\BusinessLayer\bin\Debug\BusinessLayer.Types.XmlSerializers.dll' [C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj]
BusinessLayer.Moles.g.cs(17621,77): error CS0433: The type 'Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializer1' exists in both 'c:\Program Files\Microsoft Moles\PublicAssemblies\Microsoft.Moles.Framework.dll' and 'C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\ClassLibraryProjects\BusinessLayer\bin\Debug\BusinessLayer.Types.XmlSerializers.dll' [C:\Development\Dev-FT-Branch - UnitTesting\Main\SourceNG\TestProjects\UnitTestProjects\CompatibilityUnitTests\obj\Debug\Moles\BusinessLayer.Moles.g.csproj]
0 Warning(s)
2 Error(s)
Time Elapsed 00:00:00.70
00:00:03.85> moles generator 1 errors, 0 warnings
moles compiler returned error while compiling the generated code (-1007 - 0xfffffc11)
Moles: processing BusinessLayer.moles - generation finished
moles generation failedThanks so much for your help with this issue.
Tuesday, June 29, 2010 10:52 PM