Problem building revision 26718

Aug 13, 2009 at 10:13 AM

Hi,
I'm unable to build the silverlight parts of the current DLR (revision 26718). I have the following installed:

Windows 7 RTM
Windows 7 SDK
Visual Studio 2008
Visual Studio 2008 SP1
Silverlight 3 tools

fully updated with windows updates.

When I load the solution a number of the projects have references with exclamation marks on them. Typically, but not every instance of, system, system.data, system.xml, system.windows and system.windows.browser

Am I missing something from my build machine? Or is there something else wrong?

Please could the DLR team also add a short txt file to the root directory of the repository listing what is required to do a full build from the sources.

Thanks

 

Jonathan

Aug 13, 2009 at 8:43 PM

Hi Jonathan,

I think you have the right prerequisites to build. Can you give more information about what the build error is?

The exclamation marks on some of the references are to be expected (and generally harmless). We have to do a bit of csproj magic to be able to use the same project files for both desktop and Silverlight binaries. The spurious exclamation marks are a side effect of that.

Thanks,

- John

Aug 14, 2009 at 10:44 AM

John,

I've done a clean checkout from SVN:

svn checkout https://dlr.svn.codeplex.com/svn .
...
Checked out revision 26872.

and opened dlr_main\src\Codeplex-DLR.sln in VS2008.

and here are the error/warning messages from the various builds - I hope they make sense to you :)

Thanks,

Jonathan


Silverlight Debug (rebuild solution): Rebuild All failed
Error 1 Warning as Error: The predefined type 'System.Runtime.InteropServices.DefaultParameterValueAttribute' is defined in multiple assemblies in the global alias; using definition from 'C:\Users\jonathan\dlr_\DLR_Main\Src\Runtime\Microsoft.Scripting.Core\Stubs.cs' Microsoft.Scripting.Core
Error 2 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\Microsoft.Scripting.Core.dll' could not be found Microsoft.Scripting
Error 3 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\Microsoft.Scripting.Core.dll' could not be found Microsoft.Scripting.Debugging
Error 4 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\Microsoft.Scripting.dll' could not be found Microsoft.Scripting.Debugging
Error 5 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\Microsoft.Scripting.Core.dll' could not be found IronPython (Languages\IronPython\IronPython)
Error 6 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\Microsoft.Scripting.dll' could not be found IronPython (Languages\IronPython\IronPython)
Error 7 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\Microsoft.Scripting.Debugging.dll' could not be found IronPython (Languages\IronPython\IronPython)
Error 8 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\Microsoft.Scripting.Core.dll' could not be found Ruby (Languages\Ruby\Ruby)
Error 9 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\Microsoft.Scripting.dll' could not be found Ruby (Languages\Ruby\Ruby)
Error 10 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\Microsoft.Scripting.Debugging.dll' could not be found Ruby (Languages\Ruby\Ruby)
Error 11 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\Microsoft.Scripting.Core.dll' could not be found IronPython.Modules
Error 12 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\IronPython.dll' could not be found IronPython.Modules
Error 13 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\Microsoft.Scripting.dll' could not be found IronPython.Modules
Error 14 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\Microsoft.Scripting.Core.dll' could not be found IronRuby.Libraries
Error 15 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\IronRuby.dll' could not be found IronRuby.Libraries
Error 16 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\Microsoft.Scripting.dll' could not be found IronRuby.Libraries
Error 17 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\Microsoft.Scripting.Core.dll' could not be found Microsoft.Scripting.Silverlight
Error 18 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\Microsoft.Scripting.dll' could not be found Microsoft.Scripting.Silverlight
Error 19 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\Microsoft.Scripting.Core.dll' could not be found IronPythonTest
Error 20 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\IronPython.dll' could not be found IronPythonTest
Error 21 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Debug\Microsoft.Scripting.dll' could not be found IronPythonTest
Warning 22 The referenced component 'System' could not be found.  
Warning 23 The referenced component 'System' could not be found.  
Warning 24 The referenced component 'System' could not be found.  
Warning 25 The referenced component 'System' could not be found.  
Warning 26 The referenced component 'System' could not be found.  
Warning 27 The referenced component 'System' could not be found.  
Warning 28 The referenced component 'System' could not be found.  
Warning 29 The referenced component 'System' could not be found.  
Warning 30 Could not resolve this reference. Could not locate the assembly "System.Windows.Browser". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. Microsoft.Scripting.Silverlight
Warning 31 Could not resolve this reference. Could not locate the assembly "System.Windows". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. Microsoft.Scripting.Silverlight
Warning 32 The referenced component 'System.Windows.Browser' could not be found.  
Warning 33 The referenced component 'System.Windows' could not be found.  
Warning 34 The parent file, 'Settings.settings', for file 'Properties\Settings.Designer.cs' cannot be found in the project file. ShapeScript
Warning 35 The referenced component 'System' could not be found.  

 

Silverlight release (Rebuild solution): Rebuild All failed
Warning 1 The parent file, 'Settings.settings', for file 'Properties\Settings.Designer.cs' cannot be found in the project file. ShapeScript
Error 2 Warning as Error: The predefined type 'System.Runtime.InteropServices.DefaultParameterValueAttribute' is defined in multiple assemblies in the global alias; using definition from 'C:\Users\jonathan\dlr_\DLR_Main\Src\Runtime\Microsoft.Scripting.Core\Stubs.cs' Microsoft.Scripting.Core
Error 3 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\Microsoft.Scripting.Core.dll' could not be found Microsoft.Scripting
Error 4 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\Microsoft.Scripting.dll' could not be found Microsoft.Scripting.Debugging
Error 5 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\Microsoft.Scripting.Core.dll' could not be found Microsoft.Scripting.Debugging
Error 6 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\Microsoft.Scripting.Debugging.dll' could not be found IronPython (Languages\IronPython\IronPython)
Error 7 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\Microsoft.Scripting.Core.dll' could not be found IronPython (Languages\IronPython\IronPython)
Error 8 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\Microsoft.Scripting.dll' could not be found IronPython (Languages\IronPython\IronPython)
Error 9 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\Microsoft.Scripting.Debugging.dll' could not be found Ruby (Languages\Ruby\Ruby)
Error 10 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\Microsoft.Scripting.Core.dll' could not be found Ruby (Languages\Ruby\Ruby)
Error 11 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\Microsoft.Scripting.dll' could not be found Ruby (Languages\Ruby\Ruby)
Error 12 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\IronPython.dll' could not be found IronPython.Modules
Error 13 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\Microsoft.Scripting.Core.dll' could not be found IronPython.Modules
Error 14 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\Microsoft.Scripting.dll' could not be found IronPython.Modules
Error 15 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\IronRuby.dll' could not be found IronRuby.Libraries
Error 16 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\Microsoft.Scripting.Core.dll' could not be found IronRuby.Libraries
Error 17 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\Microsoft.Scripting.dll' could not be found IronRuby.Libraries
Error 18 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\Microsoft.Scripting.dll' could not be found Microsoft.Scripting.Silverlight
Error 19 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\Microsoft.Scripting.Core.dll' could not be found Microsoft.Scripting.Silverlight
Error 20 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\IronPython.dll' could not be found IronPythonTest
Error 21 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\Microsoft.Scripting.Core.dll' could not be found IronPythonTest
Error 22 Metadata file 'C:\Users\jonathan\dlr_\DLR_Main\Bin\Silverlight Release\Microsoft.Scripting.dll' could not be found IronPythonTest
Warning 23 The referenced component 'System' could not be found.  
Warning 24 The referenced component 'System' could not be found.  
Warning 25 The referenced component 'System' could not be found.  
Warning 26 The referenced component 'System' could not be found.  
Warning 27 The referenced component 'System' could not be found.  
Warning 28 The referenced component 'System' could not be found.  
Warning 29 The referenced component 'System' could not be found.  
Warning 30 The referenced component 'System' could not be found.  
Warning 31 Could not resolve this reference. Could not locate the assembly "System.Windows.Browser". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. Microsoft.Scripting.Silverlight
Warning 32 Could not resolve this reference. Could not locate the assembly "System.Windows". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. Microsoft.Scripting.Silverlight
Warning 33 The referenced component 'System.Windows.Browser' could not be found.  
Warning 34 The referenced component 'System.Windows' could not be found.  
Warning 35 The referenced component 'System' could not be found.  


debug (rebuild all): Rebuild All succeeded
Warning 1 The parent file, 'Settings.settings', for file 'Properties\Settings.Designer.cs' cannot be found in the project file. ShapeScript
Warning 2 Could not resolve this reference. Could not locate the assembly "System.Windows.Browser". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. Microsoft.Scripting.Silverlight
Warning 3 Could not resolve this reference. Could not locate the assembly "System.Windows". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. Microsoft.Scripting.Silverlight
Warning 4 The referenced component 'System.Windows.Browser' could not be found.  
Warning 5 The referenced component 'System.Windows' could not be found.  
Warning 6 Field 'Microsoft.Scripting.ComInterop.ComEventDesc.sourceIID' is never assigned to, and will always have its default value  C:\Users\jonathan\dlr_\DLR_Main\Src\Runtime\Microsoft.Scripting\ComInterop\ComEventDesc.cs 26 23 Microsoft.Scripting
Warning 7 Field 'Microsoft.Scripting.ComInterop.ComEventDesc.dispid' is never assigned to, and will always have its default value 0 C:\Users\jonathan\dlr_\DLR_Main\Src\Runtime\Microsoft.Scripting\ComInterop\ComEventDesc.cs 27 22 Microsoft.Scripting
Warning 8 Field 'Microsoft.Scripting.Runtime.ExceptionHelpers._caughtExceptions' is never assigned to, and will always have its default value null C:\Users\jonathan\dlr_\DLR_Main\Src\Runtime\Microsoft.Scripting\Runtime\ExceptionHelpers.cs 39 41 Microsoft.Scripting
Warning 9 The field 'ShapeScript.Form1._c' is never used C:\Users\jonathan\dlr_\DLR_Main\Samples\Hosting\ShapeScript\Form1.cs 45 16 ShapeScript
Warning 10 The referenced component 'mscorlib' could not be found.  
Warning 11 The referenced component 'System' could not be found.  
Warning 12 The referenced component 'mscorlib' could not be found.  
Warning 13 The referenced component 'System' could not be found.  
Warning 14 The referenced component 'System.Core' could not be found.  
Warning 15 The referenced component 'mscorlib' could not be found.  
Warning 16 The referenced component 'System' could not be found.  
Warning 17 The referenced component 'mscorlib' could not be found.  
Warning 18 The referenced component 'System' could not be found.  
Warning 19 The referenced component 'mscorlib' could not be found.  
Warning 20 The referenced component 'System.Net' could not be found.  
Warning 21 The referenced component 'System' could not be found.  
Warning 22 The referenced component 'mscorlib' could not be found.  
Warning 23 The referenced component 'System' could not be found.  
Warning 24 The referenced component 'System.Net' could not be found.  
Warning 25 The referenced component 'mscorlib' could not be found.  
Warning 26 The referenced component 'System' could not be found.  
Warning 27 The referenced component 'mscorlib' could not be found.  
Warning 28 The referenced component 'System' could not be found.  
Warning 29 The referenced component 'mscorlib' could not be found.  
Warning 30 The referenced component 'System' could not be found.  

release (rebuild all): Rebuild All succeedded
Warning 1 The parent file, 'Settings.settings', for file 'Properties\Settings.Designer.cs' cannot be found in the project file. ShapeScript
Warning 2 Could not resolve this reference. Could not locate the assembly "System.Windows.Browser". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. Microsoft.Scripting.Silverlight
Warning 3 Could not resolve this reference. Could not locate the assembly "System.Windows". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. Microsoft.Scripting.Silverlight
Warning 4 The referenced component 'System.Windows.Browser' could not be found.  
Warning 5 The referenced component 'System.Windows' could not be found.  
Warning 6 Field 'Microsoft.Scripting.ComInterop.ComEventDesc.sourceIID' is never assigned to, and will always have its default value  C:\Users\jonathan\dlr_\DLR_Main\Src\Runtime\Microsoft.Scripting\ComInterop\ComEventDesc.cs 26 23 Microsoft.Scripting
Warning 7 Field 'Microsoft.Scripting.ComInterop.ComEventDesc.dispid' is never assigned to, and will always have its default value 0 C:\Users\jonathan\dlr_\DLR_Main\Src\Runtime\Microsoft.Scripting\ComInterop\ComEventDesc.cs 27 22 Microsoft.Scripting
Warning 8 Field 'Microsoft.Scripting.Runtime.ExceptionHelpers._caughtExceptions' is never assigned to, and will always have its default value null C:\Users\jonathan\dlr_\DLR_Main\Src\Runtime\Microsoft.Scripting\Runtime\ExceptionHelpers.cs 39 41 Microsoft.Scripting
Warning 9 The field 'ShapeScript.Form1._c' is never used C:\Users\jonathan\dlr_\DLR_Main\Samples\Hosting\ShapeScript\Form1.cs 45 16 ShapeScript
Warning 10 The using directive for 'Microsoft.Scripting' appeared previously in this namespace C:\Users\jonathan\dlr_\DLR_Main\Src\Languages\sympl\csharp-cponly\DlrHosting.cs 12 7 sympl35cponly
Warning 11 The referenced component 'mscorlib' could not be found.  
Warning 12 The referenced component 'System' could not be found.  
Warning 13 The referenced component 'mscorlib' could not be found.  
Warning 14 The referenced component 'System' could not be found.  
Warning 15 The referenced component 'System.Core' could not be found.  
Warning 16 The referenced component 'mscorlib' could not be found.  
Warning 17 The referenced component 'System' could not be found.  
Warning 18 The referenced component 'mscorlib' could not be found.  
Warning 19 The referenced component 'System' could not be found.  
Warning 20 The referenced component 'mscorlib' could not be found.  
Warning 21 The referenced component 'System.Net' could not be found.  
Warning 22 The referenced component 'System' could not be found.  
Warning 23 The referenced component 'mscorlib' could not be found.  
Warning 24 The referenced component 'System' could not be found.  
Warning 25 The referenced component 'System.Net' could not be found.  
Warning 26 The referenced component 'mscorlib' could not be found.  
Warning 27 The referenced component 'System' could not be found.  
Warning 28 The referenced component 'mscorlib' could not be found.  
Warning 29 The referenced component 'System' could not be found.  
Warning 30 The referenced component 'mscorlib' could not be found.  
Warning 31 The referenced component 'System' could not be found.  

Aug 17, 2009 at 11:37 PM

 

C:\Users\jimmysch\Downloads\dlr-26964\DLR_Main\Src>msbuild Codeplex-DLR.sln /p:S
ilverlightPath="C:\Program Files\Microsoft Silverlight\3.0.40723.0" /p:Configura
tion="Silverlight Debug"

To build for Silverlight, you should specify the SilverlightPath, as Silverlight might have released another version, breaking the hardcoded path in our project files =) This following command should build all the DLR assemblies for Silverlight just fine:

msbuild Codeplex-DLR.sln /p:SilverlightPath="C:\Program Files\Microsoft Silverlight\3.0.40723.0" /p:Configuration="Silverlight Debug"

 

Aug 18, 2009 at 10:22 AM

Thanks Jimmy - that works a treat :)

Now we just need a batch file (or powershell script) next to the .sln files that goes & finds the silverlight directory and calls msbuild as appropriate. Ideally one that lets us just rebuild all of the targets :)

 

Jonthan