Compilation errors (Vista and MSRS v1.5)

Hi all,

I've installed May CTP v1.5 on a laptop running Vista Home Basic, and while the simulations supplied work (the ones that appear as selectable icons in the start menu), attempting to compile my own projects generates the following:

Error 1 The OutputPath property is not set for this project. Please check to make sure that you have specified a valid Configuration/Platform combination. Configuration='Debug' Platform='MCD'


Error 2 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\RobotTeamVistaOne.Y2007.M05.dll" /proxyprojectpath:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\RobotTeamVistaOne\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\ " /referencepath:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\ "" exited with code 20.

Interestingly, the supplied simulation code (Simulation Tutorial 5) generates the same errors the first time compilation is attempted, but works on subsequent occasions, without any changes made to the build properties... what am I missing?

<edit>

I've re-installed MSRS v1.5 (May). First, I tried running simulation tutorial 5 from the progams menu icon. Failed to work, errors as below. Then I loaded the project into C# and attempted to build simulation tutorial 5- on the first build attempt it gives the same errors as above, on the second build attempt it claims success but then fails to work: errors displayed in red in command line type box are as below...

***Error creating service typehttp://schemas.tempuri.org/2006/08/simulationtutorial5.html [06/01/2007 10:27:57][http://ross-pc:50000/constructor/8b9d2cb8-5dc0-4d4b-8b7d-502df8c82918]


*** Manifest Loader: Creating service failed:http://schemas.tempuri.org/2006/08/simulationtutorial5.html [06/01/2007 10:27:57][http://ross-pc:50000/manifestloader/7881e510-4b1a-4d69-989f-3d22804d76be]

Simulation tutorial of Kuka Arm works correctly, I have at no time attempted compilation of it.

Disregard italicised material above- I've found the reason for this issue; uninstalling the May CTP doesn't actually remove all the C# files associated with it in the Vista O/S. It's necessary to manually delete the directory to get rid of the last remnants,then re-install.

Still having build issues with my projects and with the supplied ones, error messages on build as listed at the top of this post.

</edit>

Regards,

Ross.

[3168 byte] By [RossDeRango] at [2008-3-5]
# 1

Hi Ross, something is not properly setup regarding Visual Studio or .NET framework.

1) are you using Visual C# express?

a) if so, do other c# projects (not MSS< any simple new C# project) compile and work ok?

2) can you cut and paste the contents of your CSPROJ file so we can see whatthe output path is set to?

can you also run DssProjectMigration.exe on your samples\ directory and see if that fixes up things.It is possible it got confused when you installed

GeorgeChrysanthakopoulos at 2007-10-3 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Community...
# 2

Hi George,

Sorry for delayed response;

1) Yes

1a) simple stuff (Hello World console app. etc) works without trouble

2) OK, here 'tis:

<?xml version="1.0" encoding="utf-8"?>

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>

<ReferencePath>C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\</ReferencePath>

<DeployDeviceID>f27da329-3269-4191-98e0-c87d3d7f1db9d6518ffb-710f-11d3-99f2-00105a0df099</DeployDeviceID></PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">

<StartWorkingDirectory>C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\</StartWorkingDirectory>

<StartAction>Program</StartAction>

<StartProgram>C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\dsshost.exe</StartProgram>

<StartArguments>-port:50000 -tcpport:50001 -manifest:"samples/RobotTeamVistaTwo/RobotTeamVistaTwo.manifest.xml"</StartArguments>

</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">

<StartWorkingDirectory>C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\</StartWorkingDirectory>

<StartAction>Program</StartAction>

<StartProgram>C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\dsshost.exe</StartProgram>

<StartArguments>-port:50000 -tcpport:50001 -manifest:"samples/RobotTeamVistaTwo/RobotTeamVistaTwo.manifest.xml"</StartArguments>

</PropertyGroup>

</Project>

I've run DssProjectMigration.exe on the samples directory, it ran through all the projects supplied, no impact on the issue at hand.

Regards,

Ross.

RossDeRango at 2007-10-3 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Community...
# 3

Hi Ross,

When you start MSRS Command Prompt, run the following command and see if your project compiles right.

set PLATFORM=

This will clear the PLATFORM env variable if defined and then the compiler should pick the "AnyCPU" platform set in the project file.

OmidK.Rad at 2007-10-3 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Community...
# 4

Hi Omid,

Tried that, no change in errors on compilation. I was able to clear the PLATFORM variable, it just didn't help. Manually changing contents of .csproj file to reflect contents of error message does not help either.

Any other ideas out there?

Ross.

RossDeRango at 2007-10-3 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Community...
# 5

Well, clearing the PLATFROM environment variable is the only workaround I am aware of. You can try a couple of things.

- set PLATFORM=AnyCPU and then compile

- open .csproj files for all proxy projects in notepad and make sure platform is set to AnyCPU in them. like

<PROPERTYGROUP Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">

Then compile the proxies manually using msbuild

OmidK.Rad at 2007-10-3 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Community...
# 6

Hi Omid,

Thanks for the help, compiling manually from command prompt with MSbuild does the trick. For anyone experiencing the same problem, my work-around is the following command sequence at the MSRS command prompt, first three lines compile, next three lines to run, copy past the lines as batches into the command window:

Code Snippet

set PLATFORM=AnyCPU
cd samples\robotteamvistatwo
msbuild robotteamvistatwo.sln /p:Configuration="Debug" /p:Platform="Any CPU"

cd ..
cd ..
bin\dsshost /port:50000 /tcpport:50001 /manifest:"samples\RobotTeamVistaTwo\RobotTeamVistaTwo.manifest.xml"

Regards,

Ross.

RossDeRango at 2007-10-3 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Community...

Microsoft Robotics Studio

Site Classified