problems migrating Surveyor SRV-1 services from 1.0 to 1.5
-
Friday, June 01, 2007 4:10 PMHello -
BuildSolution.cmd runs without problem on MSRS 1.0, but doesn't compile on MSRS 1.5. I ran the DssProjectMingration utility, and that seemed to work without problem. This looks like a configuration problem, so hopefully it's something obvious.
There doesn't seem to be a way to attach a file to this message, so a dump of the session is found below. If you want to download our original MSRS 1.0 files, you'll find them at http://www.surveyor.com/MSRS.html
Thanks, Howard
====================================================
C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1
>buildsolution.cmd
C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1
>MSBuild Surveyor.SRV-1.sln /t:Rebuild /p:Configuration=Release /p
latform="Any
CPU"
Microsoft (R) Build Engine Version 2.0.50727.42
[Microsoft .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation 2005. All rights reserved.
Build started 6/1/2007 8:55:09 AM.
__________________________________________________
Project "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surve
yor\SRV-1\Surveyor.SRV-1.sln" (Rebuild target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "Release|Any CPU".
Target Rebuild:
Target Srv1Controller:Rebuild:
__________________________________________________
Project "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platfor
ms\Surveyor\SRV-1\Surveyor.SRV-1.sln" is building "C:\Microsoft Robotics Studio
1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Srv1Controller\Srv1Controlle
r.csproj" (Rebuild target(s)):
Target CoreClean:
Deleting file "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\S
urveyor.Srv1Controller.dll".
Deleting file "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\S
urveyor.Srv1Controller.pdb".
Deleting file "obj\Release\Surveyor.Srv1Controller.dll".
Deleting file "obj\Release\Surveyor.Srv1Controller.pdb".
Target CoreCompile:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /now
arn:1701,1702 /errorreport
rompt /warn:4 /define:TRACE /reference:C:\WINDOWS\Mi
crosoft.NET\Framework\v2.0.50727\System.dll reference:C:\WINDOWS\Microsoft.NET\
Framework\v2.0.50727\System.Drawing.dll reference:C:\WINDOWS\Microsoft.NET\Fram
ework\v2.0.50727\System.XML.dll /debug
dbonly /keyfile:"C:\Microsoft Robotics S
tudio 1.5 (CTP May 2007)\samples\mrisamples.snk" /optimize+ /out
bj\Release\Sur
veyor.Srv1Controller.dll /target:library BounceIRResponse.cs Enums.cs ImageResol
ution.cs Properties\AssemblyInfo.cs SerialResponse.cs Srv1Controller.cs
Target CopyFilesToOutputDirectory:
Copying file from "obj\Release\Surveyor.Srv1Controller.dll" to "C:\M
icrosoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1Controller.dll".
Srv1Controller -> C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bi
n\Surveyor.Srv1Controller.dll
Copying file from "obj\Release\Surveyor.Srv1Controller.pdb" to "C:\M
icrosoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1Controller.pdb".
Target PostBuildEvent:
"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\DssProxy.exe" /
dll:"" /proxyprojectpath:"Proxy " /keyfile:"C:\Microsoft Robotics Studio 1.5 (CT
P May 2007)\samples\mrisamples.snk" /binpath:". " /referencepath:"C:\WINDOWS\M
icrosoft.NET\Framework\v2.0.50727\ " referencepath:"C:\WINDOWS\Microsoft.NET\Fr
amework\v2.0.50727\ " /referencepath:"C:\WINDOWS\Microsot.NET\Framework\v2.0.50
727\ "
'' is not a valid value for the 'Dll' command line option
6/1/2007 8:55:09 AM
Microsoft (R) DSS Proxy Generator Utility Version 1.0.446.3
Copyright (c) Microsoft Corporation. All rights reserved.
/Verbosity:<string> Display this amo
unt of information. Available levels are: q[uiet], m[inimal], n[ormal], d[etaile
d], i[nfo]. Default value:'n' (short form /v)
/Dll:<string> Generate a proxy
for the specified DssService.dll filename. (short form /d)
/ProxyProjectPath:<string> The output path
for the proxy project. (short form /p)
/BinPath:{<uri>|<path>} The root output
path for proxy dlls. (short form /b)
/KeyFile:{<uri>|<path>} Keyfile for sign
ing. (short form /k)
/DelaySign[+|-|:true|:false] Delay sign compi
led projects Default value:'-' (short form /s)
/RelaxedRules[+|-|:true|:false] Allow parsing of
improperly formed Dss Services Default value:'-' (short form /f)
/ReferencePath:<string> Assembly referen
ce path (separate multiple paths with ';') (short form /r)
/Property:<string> Additional MSBui
ld properties passed to the build engine as global parameters equivalent of usin
g the "/property:" MSBuild command line option. Use one property per command lin
e option.
/GenerateCompactFrameworkProxy[+|-|:true|:false] Generate .Net Co
mpact Framework proxy DLL. Global build project properties setting the platform
family etc. can be passed using the CompactFrameworkGlobalPropertyFile command l
ine option. (short form /gcfp)
/CompactFrameworkGlobalPropertyFile:{<uri>|<path>} File containing
properties directing which Compact Framework to target. (short form /cfgp)
@<file> Name of a text f
ile containing arguments. Multiple arguments per line are allowed. An unquoted h
ash ('#') comments out the remainder of a line. An argument file is processed by
removing comments, leading and trailing spaces and tabs, processing quotation m
arks and escape sequences, and then processing the arguments as if they were on
the command line.
6/1/2007 8:55:09 AM
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targe
ts(3089,13): error MSB3073: The command ""C:\Microsoft Robotics Studio 1.5 (CTP
May 2007)\bin\DssProxy.exe" /dll:"" /proxyprojectpath:"Proxy " /keyfile:"C:\Micr
osoft Robotics Studio 1.5 (CTP May 2007)\samples\mrisamples.snk" /binpath:". "
/referencepath:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ " /referencepath
:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ " /referencepath:"C:\WINDOWS\Mi
crosoft.NET\Framework\v2.0.50727\ ""exited with code 1.
Done building target "PostBuildEvent" in project "Srv1Controller.csproj"
-- FAILED.
Done building project "Srv1Controller.csproj" -- FAILED.
Build FAILED.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3089,13):
error MSB3073: The command ""C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bi
n\DssProxy.exe" /dll:"" /proxyprojectpath:"Proxy " /keyfile:"C:\Microsoft Roboti
cs Studio 1.5 (CTP May 2007)\samples\mrisamples.snk" /binpath:". " /referencep
ath:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ " /referencepath:"C:\WINDOWS
\Microsoft.NET\Framework\v2.0.50727 " /referencepath:"C:\WINDOWS\Microsot.NET\
Framework\v2.0.50727\ "" exited with code 1.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.75
C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1
>del "..\..\..\..\store\contractDirectoryCache.bin"
Could Not Find C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\store\contractDir
ectoryCache.bin
C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1
>Copy /Y "Srv1Services\Config\*.xml" "..\..\..\Config"
Srv1Services\Config\Surveyor.SRV1.Camera.Capture.config.xml
Srv1Services\Config\Surveyor.SRV1.Camera.Capture.manifest.xml
Srv1Services\Config\Surveyor.SRV1.Camera.config.xml
Srv1Services\Config\Surveyor.SRV1.Camera.manifest.xml
Srv1Services\Config\Surveyor.SRV1.CameraDrive.manifest.xml
Srv1Services\Config\Surveyor.SRV1.Controller.config.xml
Srv1Services\Config\Surveyor.SRV1.Vehicle.Bumper.config.xml
Srv1Services\Config\Surveyor.SRV1.Vehicle.Drive.config.xml
Srv1Services\Config\Surveyor.SRV1.Vehicle.manifest.xml
9 file(s) copied.
C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1
>
All Replies
-
Friday, June 01, 2007 6:22 PM
Hello Howard,
For some reason the post build event is not migrated correctly with DssProjectMingration tool. Here are the steps to fix it:
First from MSRS Command Prompt run the following to migrate the SRV-1 service projects:
DssProjectMigration.exe /backup:false "%MRI_INSTANCE_DIR%\samples\Platforms\Surveyor\SRV-1"
Then open each of the following files in an XML editor:
Srv1\Srv1.csproj
Srv1Services\SurveyorSrv1Services.csproj
And replace the PostBuildEvent tags with the following:
<PostBuildEvent>"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\dssproxy.exe" /dll:"$(TargetPath)" /proxyprojectpath:"$(ProjectDir)Proxy " /keyfile:"$(AssemblyOriginatorKeyFile)" $(ProxyDelaySign) $(CompactFrameworkProxyGen) /binpath:". " /referencepath:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\ "</PostBuildEvent>
For Srv1Controller\Srv1Controller.csproj make the post build event clear if one is specified: <PostBuildEvent></PostBuildEvent>
Then go back and run BuildSolution.cmd and everything should work fine

Also if you wanted to create a dll pack note that now the bin\services directory is removed as of 1.5 CTP and all the assemblies are copied directly to bin.
Please let me know if this worked for you. -
Friday, June 01, 2007 7:46 PMHi Omid. Nice to hear from you !
Your suggestions helped, and the compilation goes further, but there's still a problem :
==================================================
C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1
>BuildSolution.cmd
C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1
>MSBuild Surveyor.SRV-1.sln /t:Rebuild /p:Configuration=Release /p
latform="Any
CPU"
Microsoft (R) Build Engine Version 2.0.50727.42
[Microsoft .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation 2005. All rights reserved.
Build started 6/1/2007 12:35:40 PM.
__________________________________________________
Project "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surve
yor\SRV-1\Surveyor.SRV-1.sln" (Rebuild target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "Release|Any CPU".
Target Rebuild:
Target Srv1Controller:Rebuild:
__________________________________________________
Project "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platfor
ms\Surveyor\SRV-1\Surveyor.SRV-1.sln" is building "C:\Microsoft Robotics Studio
1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Srv1Controller\Srv1Controlle
r.csproj" (Rebuild target(s)):
Target CoreClean:
Creating directory "obj\".
Target PrepareForBuild:
Creating directory "obj\Release\".
Target CoreCompile:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /now
arn:1701,1702 /errorreport
rompt /warn:4 /define:TRACE /reference:C:\WINDOWS\Mi
crosoft.NET\Framework\v2.0.50727\System.dll reference:C:\WINDOWS\Microsoft.NET\
Framework\v2.0.50727\System.Drawing.dll reference:C:\WINDOWS\Microsoft.NET\Fram
ework\v2.0.50727\System.XML.dll /debug
dbonly /keyfile:"C:\Microsoft Robotics S
tudio 1.5 (CTP May 2007)\samples\mrisamples.snk" /optimize+ /out
bj\Release\Sur
veyor.Srv1Controller.dll /target:library BounceIRResponse.cs Enums.cs ImageResol
ution.cs Properties\AssemblyInfo.cs SerialResponse.cs Srv1Controller.cs
Target CopyFilesToOutputDirectory:
Copying file from "obj\Release\Surveyor.Srv1Controller.dll" to "C:\M
icrosoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1Controller.dll".
Srv1Controller -> C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bi
n\Surveyor.Srv1Controller.dll
Copying file from "obj\Release\Surveyor.Srv1Controller.pdb" to "C:\M
icrosoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1Controller.pdb".
Target Srv1:Rebuild:
__________________________________________________
Project "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platfor
ms\Surveyor\SRV-1\Surveyor.SRV-1.sln" is building "C:\Microsoft Robotics Studio
1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Srv1\Srv1.csproj" (Rebuild t
arget(s)):
Target CoreClean:
Creating directory "obj\".
Target PrepareForBuild:
Creating directory "obj\Release\".
Target ResolveProjectReferences:
__________________________________________________
Project "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Pla
tforms\Surveyor\SRV-1\Srv1\Srv1.csproj" is building "C:\Microsoft Robotics Studi
o 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Srv1Controller\Srv1Control
ler.csproj" (GetTargetPath target(s)):
__________________________________________________
Project "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Pla
tforms\Surveyor\SRV-1\Srv1\Srv1.csproj" is building "C:\Microsoft Robotics Studi
o 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Srv1Controller\Srv1Control
ler.csproj" (GetNativeManifest target(s)):
Target _CopyNonResxEmbeddedResources:
Copying file from "Srv1Camera\camera.xslt" to "obj\Release\SharpLogi
c.Robotics.Services.Surveyor.Srv1.Srv1Camera.camera.xslt".
Target CoreCompile:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /uns
afe- /checked- /nowarn:1701,1702 /nostdlib- /warn:4 /baseaddress:285212672 /defi
ne:TRACE /reference:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Ccr.Cor
e.dll" /reference:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\DssBase.d
ll" /reference:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\DssRuntime.d
ll" /reference:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv
1Controller.dll" reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System
.dll /reference:C:\WIDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug:
pdbonly /filealign:406 /keyfile:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007
)\samples\mrisamples.snk" /optimize+ /out
bj\Release\Surveyor.Srv1.Y2006.M11.dl
l /resource
bj\Release\SharpLogic.Robotics.Services.Surveyor.Srv1.Srv1Camera.ca
mera.xslt /target:library /warnaserror+ AssemblyInfo.cs Srv1.cs Srv1AnalogActuat
or\Srv1AnalogActuator.cs Srv1AnalogActuator\Srv1AnalogActuatorState.cs Srv1Analo
gActuator\Srv1AnalogActuatorTypes.cs Srv1AnalogSensor\Srv1AnalogSensor.cs Srv1An
alogSensor\Srv1AnaogSensorState.cs Srv1AnalogSensor\Srv1AnalogSensorTypes.cs Sr
v1Camera\SaveStream.cs Srv1Camera\Srv1Camera.cs Srv1Camera\Srv1CameraState.cs Sr
v1Camera\Srv1CamraTypes.cs Srv1Camera\Vision.cs Srv1State.cs Srv1Types.cs
Target GetCopyToOutputDirectoryItems:
__________________________________________________
Project "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Pla
tforms\Surveyor\SRV-1\Srv1\Srv1.csproj" is building "C:\Microsoft Robotics Studi
o 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Srv1Controller\Srv1Control
ler.csproj" (GetCopyToOutputDirectoryItems target(s)):
Target CopyFilesToOutputDirectory:
Copying file from "obj\Release\Surveyor.Srv1.Y2006.M11.dll" to "C:\M
icrosoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1.Y2006.M11.dll".
Srv1 -> C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor
.Srv1.Y2006.M11.dll
Copying file from "obj\Release\Surveyor.Srv1.Y2006.M11.pdb" to "C:\M
icrosoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1.Y2006.M11.pdb".
Target PostBuildEvent:
"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\dssproxy.exe" /
dll:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1.Y2006.M11
.dll" /proxyprojectpath:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples
\Platforms\Surveyor\SRV-1\Srv1\Proxy " /keyfile:"C:\Microsoft Robotics Studio 1.
5 (CTP May 2007)\samples\mrisamples.snk" /binpath:". " /referencepath:"C:\Micr
osoft Robotics Studio 1.5 (CTP May 2007)\bin\ "
6/1/2007 12:35:45 PM
Reflecting: Surveyor.Srv1.Y2006.M11.dll
Proxy Path: C:/Microsoft%20Robotics%20Studio%201
.5%20(CTP%20
May%202007)/samples/Platforms/Survey
or/SRV-1/Srv
1/Proxy
__________________________________________________
Project "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Pla
tforms\Surveyor\SRV-1\Srv1\Proxy\Surveyor.Srv1.Y2006.M11.proxy.csproj" (default
targets):
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targe
ts(481,9): error : The OutputPath property is not set for this project. Please
check to make sure that you have specified a valid Configuration/Platform combin
ation. Configuration='Debug' Platform='MCD'
Done building project "Surveyor.Srv1.Y2006.M11.proxy.csproj" -- FAIL
ED.
6/1/2007 12:35:56 PM
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targe
ts(3089,13): error MSB3073: The command ""C:\Microsoft Robotics Studio 1.5 (CTP
May 2007)\bin\dssproxy.exe" /dll:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007
)\bin\Surveyor.Srv1.Y2006.M11.dll" /proxyprojectpath:"C:\Microsoft Robotics Stud
io 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Srv1\Proxy " /keyfile:"C:
\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\mrisamples.snk" /binpath
:". " /referencepath:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\ "" ex
ited with code 20.
Done building target "PostBuildEvent" in project "Srv1.csproj" -- FAILED
.
Done building project "Srv1.csproj" -- FAILED.
Build FAILED.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(481,9): e
rror : The OutputPat property is not set for this project. Please check to mak
e sure that you have specified a valid Configuration/Platform combination. Conf
iguration='Debug' Platform='MCD'
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3089,13):
error MSB3073: The command ""C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bi
n\dssproxy.exe" /dll:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Survey
or.Srv1.Y2006.M11.dll" /proxyprojectpath:"C:\Microsoft Robotics Studio 1.5 (CTP
May 2007)\samples\Platforms\Surveyor\SRV-1\Srv1\Proxy " /keyfile:"C:\Microsoft R
obotics Studio 1.5 (CTP May 2007)\samples\mrisamples.snk" /binpath:". " /refer
encepath:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\ "" exited with co
de 20.
0 Warning(s)
2 Error(s)
Time Elapsed 00:00:17.03
C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1
>del "..\..\..\..\store\contractDirectoryCache.bin"
Could Not Find C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\store\contractDir
ectoryCache.bin
C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1
>Copy /Y "Srv1Services\Config\*.xml" "..\..\..\Config"
Srv1Services\Config\Surveyor.SRV1.Camera.Capture.config.xml
Srv1Services\Config\Surveyor.SRV1.Camera.Capture.manifest.xml
Srv1Services\Config\Surveyor.SRV1.Camera.config.xml
Srv1Services\Config\Surveyor.SRV1.Camera.manifest.xml
Srv1Services\Config\Surveyor.SRV1.CameraDrive.manifest.xml
Srv1Services\Config\Surveyor.SRV1.Controller.config.xml
Srv1Services\Config\Surveyor.SRV1.Vehicle.Bumper.config.xml
Srv1Services\Config\Surveyor.SRV1.Vehicle.Drive.config.xml
Srv1Services\Config\Surveyor.SRV1.Vehicle.manifest.xml
9 file(s) copied.
C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1
> -
Friday, June 01, 2007 7:51 PM
Howard,
The issue is actually a bit different; it does not have anything to do with the reference paths but rather that there is an ordering problem in your project file. The reason for the problem is that a VS project file (actually an msbuild project file) is an XML file that can contain properties in arbitrary order. However, properties are evaluated in lexical order so if you use a property before it has been set then it has the value of empty string. In the trace above you can see exact thing happening in the dssproxy post build step where the parameter /dll:"" is empty:
Code Snippet"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\DssProxy.exe" /dll:"" /proxyprojectpath:"Proxy " /keyfile:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\mrisamples.snk" /binpath:". " /referencepath:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ " referencepath:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\" /referencepath:"C:\WINDOWS\Microsot.NET\Framework\v2.0.50727\ "It is relatively easy to fix in that you just have to reorder two lines in your project file. If you open up your project file in notepad (or some other text editor) you will find a line looking like this:
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
and also the actual post build step looking like this
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>"dssproxy.exe" /dll:"$(TargetPath)" /proxyprojectpath:"$(ProjectDir)Proxy " /keyfile:"$(AssemblyOriginatorKeyFile)"$(ProxyDelaySign) $(CompactFrameworkProxyGen) /binpath:". " @(ReferencePath->'/referencepath:"%(RootDir)%(Directory) "', ' ') </PostBuildEvent>
</PropertyGroup>Make sure the import line is before the property group defining the post build step and the project will work.
We will see whether we can detect this more easily
Hope this helps,
Henrik
-
Friday, June 01, 2007 8:25 PMHenrik -
The <Import Project> directive seems to be in the right place, but perhaps the import is failing. I don't have this problem when I compile the same code (without DssProjectMigration) under MSRS 1.0.
Perhaps someone in the MSRS group can try to compile this under MSRS 1.5 - the code is all here - http://www.surveyor.com/srvdownload/SRV1Services-061216.zip
Howard -
Friday, June 01, 2007 10:18 PM
Yes, Henrik is right. So for the problem in your first post if you just migrate the projects then modify Srv1Controller\Srv1Controller.csproj and clear the contents inside <PostBuildEvent> you should get the same results. No need to edit the other two .csproj files.
For the second issue, after running BuildSolution.cmd open these files:
Srv1\Proxy\Surveyor.Srv1.Y2006.M11.proxy.csproj
Srv1Services\Proxy\Surveyor.Srv1Services.Y2006.M11.proxy.csproj
And make sure you have the following for the 'PropertyGroup's:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
and
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
If you see something like 'Release|MCD' or 'Debug|MCD' change MCD to AnyCPU like above. Also please let me know if you had to make these changes and what were the original settings.
Thanks
-
Friday, June 01, 2007 10:33 PM
Kyle pointed out they had posted the following answer in the forum for this issue:
We saw this problem with a few of the people who built sumo bots at MEDC this year. As I recall, the problem was that they had used Platform Builder in the past and it had set up an environment variable which defined the target CPU as MCD. This caused our command-line build to fail. I don't remember exactly what the environment variable was but you should be able to type "set" in the MSRS command prompt window to display all currently defined environment variables. When you find one that is set to MCD, clear it by setting it to nothing "set <var>=" and you should then be able to build your sitting duck project.
-
Friday, June 01, 2007 10:44 PMOkay - things are compiling properly now, and I didn't have to change the csproj. We had this problem before, but set /p:Configuration=Release /p
latform="Any CPU" in BuildSolution.cmd, and that seemed to clear the problem back when we were working on MSRS 1.0.
Now I am dealing with runtime problems. It looks like only a portion of the necessary service files got transferred to bin\ after the build. I'm having trouble copying the error message out of the MSRS command window, but you should be able to duplicate this at your end. -
Friday, June 01, 2007 11:20 PM
What did you change that fixed the compilation as we already had /p:Configuration=Release /p
latform="Any CPU" in BuildSolutions.cmd?Well, when I compile, all the required DLLs are copied to bin. These files should be in C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin:
Surveyor.Srv1.Y2006.M11.dll
Surveyor.Srv1.Y2006.M11.Proxy.dll
Surveyor.Srv1.Y2006.M11.transform.dll
Surveyor.Srv1Controller.dll
Surveyor.Srv1Services.Y2006.M11.dll
Surveyor.Srv1Services.Y2006.M11.Proxy.dll
Surveyor.Srv1Services.Y2006.M11.transform.dllDSS errors are also logged in the console service http://localhost:50000/console/output ("Debug and Trace Messages" link when DssHost is running). Can you get the errors from there?
-
Friday, June 01, 2007 11:38 PMI didn't change anything except to remove the <PostBuildEvent> directives.
Actually, I'm getting compile errors again - maybe I missed seeing these earlier, which would explain why only 2 DLL's were built -
SurveyorSrv1ContactSensor.cs(23,63): error CS0234: The type or namespace name 'AnalogSensor' does not exist in the namespace 'ShartLogic.Robotics.Services.Surveyor.Srv1 (are you missing an assembly reference?) -
Friday, June 01, 2007 11:53 PMI think something in the project is modified by mistake (see the namespace for SharpLogic in above error). Please try removing the SRV-1 folder and start over: copy the files from zip, migrate, and remove the <PostBuildEvent> (for Srv1Controller.csproj only). And then compile and see if you get errors.
-
Saturday, June 02, 2007 12:08 AMSorry - that was a typo. I started from scratch, and still get the same errors. I did notice further up that there's a warning -
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets: warning MSB3245: Could not resolve this reference. Could not locate the assembly "Surveyor.Srv1.Y2006.M11.Proxy". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
I removed .NET framework v2.0 earlier today and installed v3.0, and subsequently reinstalled MSRS 1.5. I don't think this is the issue, as our code under MSRS 1.0 compiles and runs from scratch, but figured it was worth mentioning.
By the way, what's a "sitting duck project" ? -
Saturday, June 02, 2007 1:23 AM
SittingDuck is the name of a virtual team in simulated sumo pack. You can download it from here:
http://www.microsoft.com/downloads/details.aspx?familyid=A9E73C19-303E-4B3E-852E-5593E596AEC0&displaylang=en
There is also a tutorial for that.Well, I need some more clues to be able to help you. Okay, after running BuildSolution.cmd what do you get if you run
dir "%MRI_INSTANCE_DIR%"\Surveyor*.dll /s /b
-
Saturday, June 02, 2007 2:28 AMJust 2 dll's -
SRV-1\Srv1\obj\Release\Surveyor.Srv1.Y2006.M11.dll
SRV-1\Srv1Controller\obj\Release\Surveyor.Srv1Controller.dll -
Sunday, June 03, 2007 2:23 PMHere's a full dump ...
=============================================================
C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1>MSBuild Surveyor.SRV-1.sln /t:Rebuild /p:Configuration=Release /p
latform="Any CPU"
Microsoft (R) Build Engine Version 2.0.50727.42
[Microsoft .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation 2005. All rights reserved.
Build started 6/3/2007 7:15:20 AM.
__________________________________________________
Project "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Surveyor.SRV-1.sln" (Rebuild target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "Release|Any CPU".
Target Rebuild:
Target Srv1Controller:Rebuild:
__________________________________________________
Project "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Surveyor.SRV-1.sln" is building "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Srv1Controller\Srv1Controller.csproj" (Rebuild target(s)):
Target CoreClean:
Deleting file "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1Controller.dll".
Deleting file "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1Controller.pdb".
Deleting file "obj\Release\Surveyor.Srv1Controller.dll".
Deleting file "obj\Release\Surveyor.Srv1Controller.pdb".
Target CoreCompile:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /nowarn:1701,1702 /errorreport
rompt /warn:4 /define:TRACE /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.XML.dll /debug
dbonly /keyfile:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\mrisamples.snk" /optimize+ /out
bj\Release\Surveyor.Srv1Controller.dll /target:library BounceIRResponse.cs Enums.cs ImageResolution.cs Properties\AssemblyInfo.cs SerialResponse.cs Srv1Controller.cs
Target CopyFilesToOutputDirectory:
Copying file from "obj\Release\Surveyor.Srv1Controller.dll" to "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1Controller.dll".
Srv1Controller -> C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1Controller.dll
Copying file from "obj\Release\Surveyor.Srv1Controller.pdb" to "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1Controller.pdb".
Target Srv1:Rebuild:
__________________________________________________
Project "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Surveyor.SRV-1.sln" is building "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Srv1\Srv1.csproj" (Rebuild target(s)):
Target CoreClean:
Deleting file "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1.Y2006.M11.dll".
Deleting file "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1.Y2006.M11.pdb".
Deleting file "obj\Release\ResolveAssemblyReference.cache".
Deleting file "obj\Release\SharpLogic.Robotics.Services.Surveyor.Srv1.Srv1Camera.camera.xslt".
Deleting file "obj\Release\Surveyor.Srv1.Y2006.M11.dll".
Deleting file "obj\Release\Surveyor.Srv1.Y2006.M11.pdb".
Target ResolveProjectReferences:
__________________________________________________
Project "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Srv1\Srv1.csproj" is building "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Srv1Controller\Srv1Controller.csproj" (GetTargetPath target(s)):
__________________________________________________
Project "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Srv1\Srv1.csproj" is building "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Srv1Controller\Srv1Controller.csproj" (GetNativeManifest target(s)):
Target _CopyNonResxEmbeddedResources:
Copying file from "Srv1Camera\camera.xslt" to "obj\Release\SharpLogic.Robotics.Services.Surveyor.Srv1.Srv1Camera.camera.xslt".
Target CoreCompile:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /unsafe- /checked- /nowarn:1701,1702 /nostdlib- /warn:4 /baseaddress:285212672 /define:TRACE /reference:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Ccr.Core.dll" /reference:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\DssBase.dll" /reference:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\DssRuntime.dll" /reference:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1Controller.dll" /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug
dbonly /filealign:4096 /keyfile:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\mrisamples.snk" /optimize+ /out
bj\Release\Surveyor.Srv1.Y2006.M11.dll /resource
bj\Release\SharpLogic.Robotics.Services.Surveyor.Srv1.Srv1Camera.camera.xslt /target:library /warnaserror+ AssemblyInfo.cs Srv1.cs Srv1AnalogActuator\Srv1AnalogActuator.cs Srv1AnalogActuator\Srv1AnalogActuatorState.cs Srv1AnalogActuator\Srv1AnalogActuatorTypes.cs Srv1AnalogSensor\Srv1AnalogSensor.cs Srv1AnalogSensor\Srv1AnalogSensorState.cs Srv1AnalogSensor\Srv1AnalogSensorTypes.cs Srv1Camera\SaveStream.cs Srv1Camera\Srv1Camera.cs Srv1Camera\Srv1CameraState.cs Srv1Camera\Srv1CameraTypes.cs Srv1Camera\Vision.cs Srv1State.cs Srv1Types.cs
Target GetCopyToOutputDirectoryItems:
__________________________________________________
Project "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Srv1\Srv1.csproj" is building "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Srv1Controller\Srv1Controller.csproj" (GetCopyToOutputDirectoryItems target(s)):
Target CopyFilesToOutputDirectory:
Copying file from "obj\Release\Surveyor.Srv1.Y2006.M11.dll" to "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1.Y2006.M11.dll".
Srv1 -> C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1.Y2006.M11.dll
Copying file from "obj\Release\Surveyor.Srv1.Y2006.M11.pdb" to "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1.Y2006.M11.pdb".
Target SurveyorSrv1Services:Rebuild:
__________________________________________________
Project "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Surveyor.SRV-1.sln" is building "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1\Srv1Services\SurveyorSrv1Services.csproj" (Rebuild target(s)):
Target CoreClean:
Deleting file "obj\Release\ResolveAssemblyReference.cache".
Target ResolveAssemblyReferences:
Primary reference "Surveyor.Srv1.Y2006.M11.Proxy".
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets : warning MSB3245: Could not resolve this reference. Could not locate the assembly "Surveyor.Srv1.Y2006.M11.Proxy". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
For SearchPath "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\".
Considered "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
For SearchPath "{Registry
oftware\Microsoft\.NetFramework,v2.0,AssemblyFoldersEx}".
Considered "C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
Considered "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
Considered "C:\Program Files\Common Files\Microsoft Shared\MSEnv\PublicAssemblies\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\Program Files\Common Files\Microsoft Shared\MSEnv\PublicAssemblies\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
For SearchPath "{AssemblyFolders}".
Considered "C:\Program Files\Reference Assemblies\Microsoft\Tablet PC\v6.0\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Tablet PC\v6.0\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Tablet PC\v6.0\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Tablet PC\v6.0\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Tablet PC\v1.7\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Tablet PC\v1.7\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2911.0\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2911.0\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2910.0\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2910.0\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Tablet PC\v1.7\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\Tablet PC\v1.7\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2903.0\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2903.0\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2907.0\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2907.0\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2905.0\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2905.0\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2902.0\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2902.0\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2909.0\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2909.0\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2906.0\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2906.0\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2904.0\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2904.0\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2908.0\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2908.0\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
For SearchPath "{GAC}".
Considered "Surveyor.Srv1.Y2006.M11.Proxy", which was not found in the GAC.
For SearchPath "{RawFileName}".
Considered treating "Surveyor.Srv1.Y2006.M11.Proxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=c078ff0b36b5da8f, processorArchitecture=MSIL" as a file name, but it didn't exist.
For SearchPath "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\".
Considered "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1.Y2006.M11.Proxy.exe", but it didn't exist.
Considered "C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Surveyor.Srv1.Y2006.M11.Proxy.dll", but it didn't exist.
Done building target "ResolveAssemblyReferences" in project "SurveyorSrv1Services.csproj".
Target CoreCompile:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /unsafe- /checked- /nowarn:1701,1702 /nostdlib- /warn:4 /baseaddress:285212672 /define:TRACE /reference:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\Ccr.Core.dll" /reference:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\DssBase.dll" /reference:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\DssRuntime.dll" /reference:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\RoboticsCommon.Proxy.dll" /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug
dbonly /filealign:4096 /keyfile:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\mrisamples.snk" /optimize+ /out
bj\Release\Surveyor.Srv1Services.Y2006.M11.dll /target:library /warnaserror+ AssemblyInfo.cs SurveyorSrv1ContactSensor.cs SurveyorSrv1Motor.cs SurveyorSrv1Services.cs SurveyorSrv1ServicesTypes.cs
SurveyorSrv1ContactSensor.cs(23,63): error CS0234: The type or namespace name 'AnalogSensor' does not exist in the namespace 'SharpLogic.Robotics.Services.Surveyor.Srv1' (are you missing an assembly reference?)
SurveyorSrv1Motor.cs(23,61): error CS0234: The type or namespace name 'AnalogActuator' does not exist in the namespace 'SharpLogic.Robotics.Services.Surveyor.Srv1' (are you missing an assembly reference?)
Done building target "CoreCompile" in project "SurveyorSrv1Services.csproj" -- FAILED.
Done building project "SurveyorSrv1Services.csproj" -- FAILED.
Build FAILED.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets : warning MSB3245: Could not resolve this reference. Could not locate the assembly "Surveyor.Srv1.Y2006.M11.Proxy". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
SurveyorSrv1ContactSensor.cs(23,63): error CS0234: The type or namespace name 'AnalogSensor' does not exist in the namespace 'SharpLogic.Robotics.Services.Surveyor.Srv1' (are you missing an assembly reference?)
SurveyorSrv1Motor.cs(23,61): error CS0234: The type or namespace name 'AnalogActuator' does not exist in the namespace 'SharpLogic.Robotics.Services.Surveyor.Srv1' (are you missing an assembly reference?)
1 Warning(s)
2 Error(s)
Time Elapsed 00:00:01.12
C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1>del "..\..\..\..\store\contractDirectoryCache.bin"
C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\Platforms\Surveyor\SRV-1>Copy /Y "Srv1Services\Config\*.xml" "..\..\..\Config"
Srv1Services\Config\Surveyor.SRV1.Camera.Capture.config.xml
Srv1Services\Config\Surveyor.SRV1.Camera.Capture.manifest.xml
Srv1Services\Config\Surveyor.SRV1.Camera.config.xml
Srv1Services\Config\Surveyor.SRV1.Camera.manifest.xml
Srv1Services\Config\Surveyor.SRV1.CameraDrive.manifest.xml
Srv1Services\Config\Surveyor.SRV1.Controller.config.xml
Srv1Services\Config\Surveyor.SRV1.Vehicle.Bumper.config.xml
Srv1Services\Config\Surveyor.SRV1.Vehicle.Drive.config.xml
Srv1Services\Config\Surveyor.SRV1.Vehicle.manifest.xml
9 file(s) copied. -
Wednesday, June 06, 2007 7:07 PMHere's a wrap-up ...
The MSRS folks identified problems:
1. An environment variable "PLATFORM=MCP" was causing the VC# build errors. Though I still haven't located where the variable is being set, I am able to clear it is the MSRS 1.5 environment by typing "set PLATFORM=", and everything compiles cleanly
2. Once compiled, I had runtime errors such as
*** Error creating service type http://schemas.sharplogic.com/robotics/2006/11/srv1camera.html. Fault
ervice not found: http://schemas.sharplogic.com/robotics/2006/11/srv1camera.html [06/04/2007 16:03:32][http://srv1host:50000/constructor/8a6dc584-27f1-48dc-af52-9847b869b2f7]
Once I cleared the cache using
del "%MRI_INSTANCE_DIR%\store"\contractDirectory*.xml"
the cache was rebuilt and the errors cleared, though this took a few iterations
3. Though the SRV-1 services finally loaded and seemed to be operating, I was still unable to communication with the robot. I subsequently was informed that the May CTP build had an issue that affected nullable types which were used in SRV-1 services to implement a simple serial bus. The problem has been fixed in MSRS code, and it has at least been verified that the MSRS group can run the SRV-1 services, but we'll have to wait for the next MSRS release before our we (or our users) can run the SRV-1 services on version 1.5. -
Sunday, September 23, 2007 6:37 AM

