Skip to content

Commit b9c4903

Browse files
authored
Merge pull request #265 from msgpack/fix/mpu-build
Fix build scripts
2 parents 436a178 + 76ec759 commit b9c4903

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,28 +56,35 @@ See [wiki](https://github.com/msgpack/msgpack-cli/wiki)
5656
### For .NET Framework
5757

5858
1. Install Visual Studio 2017 (Community edition is OK) and 2015 (for MsgPack.Windows.sln).
59-
2. Run with Visual Studio Developer Command Prompt:
59+
* You must install .NET Framework 3.5, 4.x, .NET Core, and Xamarin dev tools to build all builds successfully.
60+
If you do not want to install options, edit `<TargetFrameworks>` element in `*.csproj` files to exclude platforms you want to exclude.
61+
2. Install latest .NET Core SDK.
62+
3. Run with Visual Studio Developer Command Prompt:
6063

64+
msbuild MsgPack.sln /t:Restore
6165
msbuild MsgPack.sln
6266

6367
Or (for Unity 3D drops):
6468

69+
msbuild MsgPack.compats.sln /t:Restore
6570
msbuild MsgPack.compats.sln
6671

6772
Or (for Windows Runtime/Phone drops and Silverlight 5 drops):
6873

74+
msbuild MsgPack.Windows.sln /t:Restore
6975
msbuild MsgPack.Windows.sln
7076

7177
Or (for Xamarin unit testing, you must have Xamarin Business or upper license and Mac machine on the LAN to build on Windows):
7278

79+
msbuild MsgPack.Xamarin.sln /t:Restore
7380
msbuild MsgPack.Xamarin.sln
7481

7582
Or open one of above solution files in your IDE and run build command in it.
7683

7784
### For Mono
7885

79-
Open MsgPack.mono.sln with MonoDevelop and then click **Build** menu item.
80-
(Of cource, you can build via xbuild.)
86+
1. Install latest Mono and .NET Core SDK.
87+
2. Now, you can build MsgPack.sln and MsgPack.Xamarin.sln with above instructions and `msbuild` in latest Mono. Note that `xbuild` does not work because it does not support latest csproj format.
8188

8289
### Own Unity 3D Build
8390

src/mpu/mpu.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@
4040
<Reference Include="System.XML" />
4141
<Reference Include="System.Xml.Linq" />
4242
</ItemGroup>
43-
<ItemGroup>
44-
<PackageReference Include="Mono.Options">
45-
<Version>1.1</Version>
46-
</PackageReference>
47-
</ItemGroup>
4843
<ItemGroup>
4944
<Compile Include="..\CommonAssemblyInfo.cs">
5045
<Link>Properties\CommonAssemblyInfo.cs</Link>

test/MsgPack.UnitTest.Unity.Il2cpp.Full.Desktop/MsgPack.UnitTest.Unity.Il2cpp.Full.Desktop.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,9 +789,10 @@
789789
</ItemGroup>
790790
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
791791
<PropertyGroup>
792-
<PostBuildEvent>RoboCopy $(ProjectDir)$(OutDir) $(ProjectDir)\..\MsgPack.UnitTest.Unity.Il2cpp.Full\Assets\Plugins\Dlls\ *.dll /MIR
792+
<PostBuildEvent Condition="'$(OS)' == 'Windows_NT'">RoboCopy $(ProjectDir)$(OutDir) $(ProjectDir)\..\MsgPack.UnitTest.Unity.Il2cpp.Full\Assets\Plugins\Dlls\ *.dll /MIR
793793
if %25ERRORLEVEL%25 geq 8 exit 1
794794
exit 0</PostBuildEvent>
795+
<PostBuildEvent Condition="'$(OS)' != 'Windows_NT'">rsync -a -r --delete $(ProjectDir)$(OutDir)/*.dll $(ProjectDir)/../MsgPack.UnitTest.Unity.Il2cpp.Full/Assets/Plugins/Dlls/</PostBuildEvent>
795796
</PropertyGroup>
796797
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
797798
Other similar extension points exist, see Microsoft.Common.targets.

0 commit comments

Comments
 (0)