Microsoft 开发人员网络 > 论坛主页 > MSBuild > Resgen: References root node unavailable
提出问题提出问题
 

问题Resgen: References root node unavailable

  • 2006年10月16日 17:30Dave P2 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

    Hi,

    I have a VS2005 build failing with an error thrown saying "References root node unavailable".  I have attached a diagnostics log below but I can't see any error that points to anything in particular.

    Has anyone seen an error like this before or have any suggestions to diagnse what might be causing it?

    Thanks,

    Dave

     

    Target "CoreResGen" in file "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets":

    Task "GenerateResource"

    "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin\Resgen.exe" /useSourcePath /r:CHChart.dll /r:C:\_cvs\ViewPoint\_PPC_DataEngineDotNet\bin\Release\DataEngineDotNet.dll /r:C:\_cvs\ViewPoint\_PPC_DataEngineHelper\bin\Release\DataEngineHelper.dll /r:LEDControl.dll /r:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\Microsoft.WindowsCE.Forms.dll" /r:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\mscorlib.dll" /r:OpenNETCF\OpenNETCF.dll /r:OpenNETCF\OpenNETCF.Windows.Forms.dll /r:OpenNETCF\OpenNETCF.WindowsCE.Forms.dll /r:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Data.dll" /r:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.dll" /r:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Drawing.dll" /r:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Windows.Forms.DataGrid.dll" /r:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Windows.Forms.dll" /r:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Xml.dll" /compile Main.resx,obj\Release\_PPC_ViewPoint.Main.resources MainStrings.resx,obj\Release\_PPC_ViewPoint.MainStrings.resources Properties\Resources.resx,obj\Release\_PPC_ViewPoint.Properties.Resources.resources

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: The "GenerateResource" task failed unexpectedly.

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: System.Runtime.InteropServices.COMException (0x80004005): References root node unavailable.

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: at Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception e)

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: at Microsoft.Build.Tasks.GenerateResource.NeedSeparateAppDomain()

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: at Microsoft.Build.Tasks.GenerateResource.Execute()

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound)

    Done executing task "GenerateResource" -- FAILED.

    Done building target "CoreResGen" in project "_PPC_ViewPoint.csproj" -- FAILED.

    Target "_CheckForCompileOutputs" in file "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets":

    Task "CreateItem" skipped, due to false condition; (Exists('@(IntermediateAssembly)')) was evaluated as (Exists('obj\Release\ViewPointClient.exe')).

    Task "CreateProperty"

    Done executing task "CreateProperty".

    Task "CreateItem" skipped, due to false condition; ('$(_DocumentationFileProduced)'=='true') was evaluated as ('false'=='true').

    Task "CreateProperty"

    Done executing task "CreateProperty".

    Task "CreateItem" skipped, due to false condition; ('$(_DebugSymbolsProduced)'=='true') was evaluated as ('false'=='true').

    Done building target "_CheckForCompileOutputs" in project "_PPC_ViewPoint.csproj".

    Target "_SGenCheckForOutputs" skipped, due to false condition; ('$(_SGenGenerateSerializationAssembliesConfig)' == 'On' or ('@(WebReferenceUrl)'!='' and '$(_SGenGenerateSerializationAssembliesConfig)' == 'Auto')) was evaluated as ('Off' == 'On' or (''!='' and 'Off' == 'Auto')).

    Target "_CleanGetCurrentAndPriorFileWrites" in file "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets":

    Task "ReadLinesFromFile"

    Done executing task "ReadLinesFromFile".

    Task "CreateItem"

    Done executing task "CreateItem".

    Task "FindUnderPath"

    Comparison path is "C:\_cvs\ViewPoint\_PPC_ViewPoint".

    Done executing task "FindUnderPath".

    Task "FindUnderPath"

    Comparison path is "bin\Release\".

    Path "C:\_cvs\ViewPoint\_PPC_ViewPoint\obj\Release\ResolveAssemblyReference.cache" is outside the comparison path.

    Done executing task "FindUnderPath".

    Task "FindUnderPath"

    Comparison path is "obj\Release\".

    Path "C:\_cvs\ViewPoint\_PPC_ViewPoint\obj\Release\ResolveAssemblyReference.cache" is inside the comparison path.

    Done executing task "FindUnderPath".

    Task "CreateItem"

    Done executing task "CreateItem".

    Task "RemoveDuplicates"

    Done executing task "RemoveDuplicates".

    Done building target "_CleanGetCurrentAndPriorFileWrites" in project "_PPC_ViewPoint.csproj".

    Target "_CleanRecordFileWrites" in file "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets":

    Task "RemoveDuplicates"

    Done executing task "RemoveDuplicates".

    Task "MakeDir"

    Done executing task "MakeDir".

    Task "WriteLinesToFile"

    Done executing task "WriteLinesToFile".

    Done building target "_CleanRecordFileWrites" in project "_PPC_ViewPoint.csproj".

    Done building project "_PPC_ViewPoint.csproj" -- FAILED.

    Build FAILED.

全部回复

  • 2006年10月16日 17:53DanMoseley - MSFT版主用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

    Dave, we haven't seen this before. We need a way to reproduce it at our end to investigate.

    Can you reduce your project down to the minimum required to reproduce it (likely, you'll be able to remove almost all the source code) and attach it to a bug? Bug opening information is at the top of this forum.

    Dan

     

  • 2007年2月15日 19:27Jade Skaggs 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    I ran into this problem too, though i was able to build my solution, I could not design forms visually.  Since Google only yields 2 results for "References root node unavailable" I figured i'd post my resolution in one of them.  I'm not sure exactly which step fixed it, but I performed a Build -> Clean Solution, then Build -> Build Solution.  Still had the issue, checked everything in to SourceSafe, and reloaded the IDE.  Now it works.
  • 2007年2月21日 9:40hattonj 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Restarting the IDE alone did it for me.
  • 2007年3月21日 13:31kazhian 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

    I wanted to copy a form from solution to another.

    So, copied form.designer.vb, form.vb & form.rex into new solution.

    but when I opend the form in design mode I got References root node unavailable.

    The I cleaned, rebuilt. Still got the error and finally, I closed all IDEs and opend. THE PROBLEM SOLVED.

  • 2007年4月5日 19:59skhoo 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

    Have the exact same error after renaming the form name in the .Designer.cs module.

     

    Created a new form and the designer is still broken with the same error.

     

    Like all of you, this error goes away after reopening the VS2005 IDE.

  • 2007年4月10日 16:05Neal2748407 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    I just had the same issue. VS2005 SP1. Will try restarting. I was trying to create a ProjectInstaller for a Windows Service. I can build just fine from sources, but have been unable to touch the designer. I did not do a rebuild or clean compile, just a simple restart of VS seems to have resolved it for me.
  • 2007年5月30日 12:50LorenzoSacco 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    I had the same problem with Visual Studio 2005. I was able to build my solution and view designer of the aspx page. I restarted the IDE and the problem disappear!
  • 2008年1月30日 10:45Rakshit Bakshi 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

    Restart the IDE, That's the only solution.

  • 2009年10月11日 14:14Damon88 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    The error usually comes up while changing the root Namespace in the MY Projects tab.

    Restarting IDE flushes old entries and when it reloads its able to render the form again.

    Atleast thats what i think.