Skip to content

Commit

Permalink
Move the generated Messages folder into the same directory as the loa…
Browse files Browse the repository at this point in the history
…ded solution. Use SolutionDir macro for all ROS.NET projects

This should allow "ros.net as a submodule" AND "ros.net as a sibling/cousin" directory structures to work without editing files tracked in the ROS.NET repo
  • Loading branch information
nuclearmistake committed Mar 1, 2016
1 parent d9013b4 commit 348227e
Show file tree
Hide file tree
Showing 35 changed files with 43 additions and 42 deletions.
2 changes: 1 addition & 1 deletion ArmGaugeUC/ArmGaugeUC.csproj
Expand Up @@ -82,7 +82,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
2 changes: 1 addition & 1 deletion CameraSlidersUC/CameraSlidersUC.csproj
Expand Up @@ -78,7 +78,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
2 changes: 1 addition & 1 deletion CompressedImageView/CompressedImageView.csproj
Expand Up @@ -76,7 +76,7 @@
<ItemGroup>
<Reference Include="Messages, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
2 changes: 1 addition & 1 deletion DynamicReconfigure/DynamicReconfigure.csproj
Expand Up @@ -83,7 +83,7 @@
<ItemGroup>
<Reference Include="Messages, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
2 changes: 1 addition & 1 deletion DynamicReconfigureSharp/DynamicReconfigureSharp.csproj
Expand Up @@ -72,7 +72,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
2 changes: 1 addition & 1 deletion EStopUC/EStopUC.csproj
Expand Up @@ -79,7 +79,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
6 changes: 5 additions & 1 deletion MD5SumTest/MD5SumTest.csproj
Expand Up @@ -104,7 +104,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
<Reference Include="System" />
Expand All @@ -126,6 +126,10 @@
<Project>{586A3B66-104A-4182-82C2-88DC120F10AC}</Project>
<Name>ROS_C-Sharp</Name>
</ProjectReference>
<ProjectReference Include="..\YAMLParser\YAMLParser.csproj">
<Project>{EFD1C674-0E1B-44E4-8AC9-DC9CCA7DCDCD}</Project>
<Name>YAMLParser</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
2 changes: 1 addition & 1 deletion MessageSerializationTests/MessageSerializationTests.csproj
Expand Up @@ -70,7 +70,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
<Reference Include="System" />
Expand Down
2 changes: 1 addition & 1 deletion MotorBarGraph/MotorBarGraphUC.csproj
Expand Up @@ -80,7 +80,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
6 changes: 1 addition & 5 deletions ROS_Comm/ROS_C-Sharp.csproj
Expand Up @@ -106,12 +106,8 @@
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
</PropertyGroup>
<ItemGroup>
<Reference Include="MathNet.Numerics, Version=3.0.2.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\mathnet-spatial\packages\MathNet.Numerics\lib\net40\MathNet.Numerics.dll</HintPath>
</Reference>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
<Reference Include="System" />
Expand Down
2 changes: 1 addition & 1 deletion ROS_IMUUtils/ROS_IMUUtil.csproj
Expand Up @@ -125,7 +125,7 @@
<ItemGroup>
<Reference Include="Messages, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
2 changes: 1 addition & 1 deletion ROS_ImageUtils/ROS_ImageWPF.csproj
Expand Up @@ -109,7 +109,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
2 changes: 1 addition & 1 deletion RosoutDebugUC/RosoutDebugUC.csproj
Expand Up @@ -81,7 +81,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
4 changes: 2 additions & 2 deletions SecondPass/SecondPass.csproj
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand Down Expand Up @@ -57,7 +57,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
Expand Down
2 changes: 1 addition & 1 deletion ServiceClientSample/ServiceClientSample.csproj
Expand Up @@ -75,7 +75,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
2 changes: 1 addition & 1 deletion ServiceServerSample/ServiceServerSample.csproj
Expand Up @@ -71,7 +71,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
2 changes: 1 addition & 1 deletion ServiceTest/ServiceTest.csproj
Expand Up @@ -37,7 +37,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
2 changes: 1 addition & 1 deletion SimplePublisher/SimplePublisher/SimplePublisher.csproj
Expand Up @@ -72,7 +72,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
2 changes: 1 addition & 1 deletion SimpleSubscriber/SimpleSubscriber/SimpleSubscriber.csproj
Expand Up @@ -76,7 +76,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
2 changes: 1 addition & 1 deletion Talker/Talker.csproj
Expand Up @@ -126,7 +126,7 @@
<ItemGroup>
<Reference Include="Messages, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
Expand Down
2 changes: 1 addition & 1 deletion TiltSliderUC/TiltSliderUC.csproj
Expand Up @@ -82,7 +82,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
Expand Down
2 changes: 1 addition & 1 deletion TransformTest/TransformTest.csproj
Expand Up @@ -101,7 +101,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
<Reference Include="System" />
Expand Down
2 changes: 1 addition & 1 deletion TransformTestLib/TransformTestLib.csproj
Expand Up @@ -32,7 +32,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down
2 changes: 1 addition & 1 deletion VoltageUC/BattVoltUC.csproj
Expand Up @@ -77,7 +77,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
Expand Up @@ -62,7 +62,7 @@
<ItemGroup>
<Reference Include="Messages, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86">
<Private>False</Private>
Expand Down
6 changes: 4 additions & 2 deletions YAMLParser/Program.cs
Expand Up @@ -104,7 +104,7 @@ private static void Main(string[] args)
GenerateProject(msgsFiles, srvFiles, false);
GenerateProject(msgsFiles, srvFiles, true);
BuildProject();
Finalize();
Finalize(solutiondir);
}
else
{
Expand Down Expand Up @@ -302,7 +302,7 @@ public static void BuildProject(string spam)
}
}

public static void Finalize()
public static void Finalize(string solutiondir)
{
string F = VCDir + "\\msbuild.exe";
Console.WriteLine("\n\nBUILDING A PROJECT THAT REFERENCES THE GENERATED CODE, TO REFINE THE GENERATED CODE!");
Expand All @@ -328,6 +328,8 @@ public static void Finalize()
proc2.StartInfo.CreateNoWindow = true;
#if !!NOT_ON_TOP_OF_ITSELF
proc2.StartInfo.Arguments = "..\\..\\..\\TempMessages\\";
#else
proc2.StartInfo.Arguments = solutiondir+"\\Messages\\";
#endif
proc2.StartInfo.FileName = outputdir_secondpass + "\\bin\\Debug\\SecondPass.exe";
proc2.Start();
Expand Down
3 changes: 1 addition & 2 deletions YAMLParser/YAMLParser.csproj
Expand Up @@ -183,8 +183,7 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>cd "$(TargetDir)"
rmdir /s /q "$(ProjectDir)..\Messages\."
YAMLParser.exe "$(ProjectDir).." "$(SolutionDir)."</PostBuildEvent>
YAMLParser.exe "$(SolutionDir)." "$(ProjectDir).."</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>
Expand Down
2 changes: 1 addition & 1 deletion _CameraStuffTest/CompressedImageView.csproj
Expand Up @@ -42,7 +42,7 @@
</Reference>
<Reference Include="Messages, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
<Reference Include="RosoutDebugUC">
Expand Down
2 changes: 1 addition & 1 deletion _CameraStuffTest/_CameraStuffTest.csproj
Expand Up @@ -42,7 +42,7 @@
</Reference>
<Reference Include="Messages, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
<Reference Include="RosoutDebugUC">
Expand Down
2 changes: 1 addition & 1 deletion _IMU_Test/CompressedImageView.csproj
Expand Up @@ -42,7 +42,7 @@
</Reference>
<Reference Include="Messages, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
<Reference Include="RosoutDebugUC">
Expand Down
2 changes: 1 addition & 1 deletion _IMU_Test/_IMU_Test.csproj
Expand Up @@ -42,7 +42,7 @@
</Reference>
<Reference Include="Messages, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
<Reference Include="RosoutDebugUC">
Expand Down
2 changes: 1 addition & 1 deletion _THE_UI/_THE_UI.csproj
Expand Up @@ -67,7 +67,7 @@
<ItemGroup>
<Reference Include="Messages, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
<Reference Include="System" />
Expand Down
2 changes: 1 addition & 1 deletion rosmaster/rosmaster.csproj
Expand Up @@ -100,7 +100,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
2 changes: 1 addition & 1 deletion tf.net/tf.net.csproj
Expand Up @@ -64,7 +64,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
2 changes: 1 addition & 1 deletion tf_example/tf_example.csproj
Expand Up @@ -70,7 +70,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Messages">
<HintPath>..\Messages\Messages.dll</HintPath>
<HintPath>$(SolutionDir)Messages\Messages.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down

0 comments on commit 348227e

Please sign in to comment.