All Projects → Cysharp → SlnMerge

Cysharp / SlnMerge

Licence: MIT license
SlnMerge merges the solution files when generating solution file by Unity Editor.

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to SlnMerge

nettle
Unofficial Nettle with added custom native Visual Studio project build tools. Nettle: Nettle is a cryptographic library that is designed to fit easily in more or less any context.
Stars: ✭ 19 (-79.12%)
Mutual labels:  visualstudio
awesome-unity
A curated list of awesome Unity games! 🎮
Stars: ✭ 346 (+280.22%)
Mutual labels:  unity-editor
MvsSln
🧩 Customizable VisualStudio .sln parser, Complex support of the projects (.vcxproj, .csproj., …), Pluginable lightweight r/w handlers at runtime, and more …
Stars: ✭ 86 (-5.49%)
Mutual labels:  visualstudio
GizmoExtensions
Utility class(es) that extend Unity's Gizmos
Stars: ✭ 100 (+9.89%)
Mutual labels:  unity-editor
unity-now
▲ Vercel Now plugin for Unity. Deploy WebGL builds with ease
Stars: ✭ 21 (-76.92%)
Mutual labels:  unity-editor
HexTiles
Unity Hex Tile Editor
Stars: ✭ 127 (+39.56%)
Mutual labels:  unity-editor
unity-puzzlesystem-asset
The asset for the Unity Engine that allows to quickly create customisable puzzles.
Stars: ✭ 21 (-76.92%)
Mutual labels:  unity-editor
Student-Information-Manage-System
学生信息管理系统
Stars: ✭ 19 (-79.12%)
Mutual labels:  visualstudio
gmp
Unofficial GMP with added custom native Visual Studio project build tools. GMP: GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers.
Stars: ✭ 61 (-32.97%)
Mutual labels:  visualstudio
UnityGlobalTextSystem
Allow the user to 'change' the default font in Unity from "Arial" to a font of their liking.
Stars: ✭ 21 (-76.92%)
Mutual labels:  unity-editor
fantomas-for-vs
Visual Studio Formatter for F#
Stars: ✭ 43 (-52.75%)
Mutual labels:  visualstudio
DLL-INJECTOR
I created a dll injector I am going to Open source its Code. But remember one thing that is any one can use it only for Educational purpose .I again say do not use it to damage anyone's Computer.But one thing if you are using it for some good purpose like to help someone who really need help then I permit you to use it.
Stars: ✭ 14 (-84.62%)
Mutual labels:  visualstudio
sdk-for-unity
SpatialOS SDK for Unity
Stars: ✭ 49 (-46.15%)
Mutual labels:  unity-editor
WorldCreatorAssistant
Unity Editor extension for automating VRChat world project package management
Stars: ✭ 133 (+46.15%)
Mutual labels:  unity-editor
presets-browser
Unity presets browser editor window.
Stars: ✭ 22 (-75.82%)
Mutual labels:  unity-editor
flutter plugin appcenter
Flutter plugins for accessing Visual Studio App Center services.
Stars: ✭ 55 (-39.56%)
Mutual labels:  visualstudio
vs-editor-api
Microsoft Visual Studio Editor API definitions
Stars: ✭ 109 (+19.78%)
Mutual labels:  visualstudio
UnityEventDrawerEx
This plugin extends the UnityEventDrawer to display runtime calls in the inspector.
Stars: ✭ 57 (-37.36%)
Mutual labels:  unity-editor
UniSymbol
【Unity】シンボルを簡単に定義できるエディタ拡張
Stars: ✭ 15 (-83.52%)
Mutual labels:  unity-editor
UGUI-Toolset
No description or website provided.
Stars: ✭ 14 (-84.62%)
Mutual labels:  unity-editor

GitHub Actions Releases

SlnMerge

SlnMerge merges the solutions when creating solution file by Unity Editor.

日本語

Table of Contents

Works with

  • Unity 2018.4.5f1 + Windows 10 and macOS 10.15
  • Microsoft Visual Studio 2019
  • JetBrains Rider 2019.2

How to use

1. Install SlnMerge

Method 1. Copy src/Editor/SlnMerge.cs to Assets/Editor in your Unity project.

Clone this repository and copy those files.

Method 2. Add the package via git from Package Manager

If you are using Unity 2019.1 or later, you can use Package Manager to install a package via git.

https://github.com/Cysharp/SlnMerge.git?path=src

2. Create ProjectName.sln.mergesettings and configure a target solution.

Create a setting XML file named <ProjectName>.sln.mergesettings.

For example, when the project name is MyUnityApp, Unity Editor generates MyUnityApp.sln. You need to create MyUnityApp.sln.mergesettings.

<SlnMergeSettings>
    <MergeTargetSolution>..\MyUnityApp.Server.sln</MergeTargetSolution>
</SlnMergeSettings>

You can specify the target solution to merge by MergeTargetSolution element.

NOTE: If you don't have the settings, SlnMerge uses ProjectName.Merge.sln as a target.

Settings

The mergesettings file has the following settings:

  • Disabled: Disable SlnMerge (default: false)
  • MergeTargetSolution: Path of the solution you want to merge
  • NestedProjects: Specify the projects to nest. Usually used as a solution folder
    • NestedProject/FolderPath: Folder path on solution (created if it doesn't exist; mutally exclusive with FolderGuid)
    • NestedProject/FolderGuid: GUID of folder on solution (mutally exclusive with FolderPath)
    • NestedProject/ProjectName: Project name (mutally exclusive with ProjectGuid)
      • Wildcard is available (?, *)
    • NestedProject/ProjectGuid: Project GUID (mutally exclusive with ProjectName)
  • ProjectConflictResolution: Processing strategy when a solution contains a project with the same name (PreserveAll, PreserveUnity, PreserveOverlay)
    • PreserveAll: Preserve all projects (both Unity generated projects and original projects)
    • PreserveUnity: Preserve Unity generated projects. (discard original project in a overlay solution)
    • PreserveOverlay: Preserve original projects in a overlay solution. (discard Unity generated projects from a merged solution)

Add projects to solution folders

You can use NestedProjects settings to move projects to solution folders. When a solution folder doesn't exist, SlnMerge will add the solution folder to the solution automatically. But, you need to define a solution folder as SolutionFolder in mergesettings.

<SlnMergeSettings>
    <MergeTargetSolution>..\ChatApp.Server.sln</MergeTargetSolution>
    <SolutionFolders>
        <!-- Define a solution folder named 'Unity' with GUID -->
        <SolutionFolder FolderPath="Unity" Guid="{55739033-89BA-48AE-B482-843AFD452468}"/>
    </SolutionFolders>
    <NestedProjects>
        <NestedProject ProjectName="Assembly-CSharp" FolderPath="Unity" />
        <NestedProject ProjectName="Assembly-CSharp-Editor" FolderPath="Unity" />
    </NestedProjects>
</SlnMergeSettings>

Troubleshooting

Always regenerate the solution file, and Visual Studio displays a conflict dialog.

  1. Close Unity Editor.
  2. Delete .csproj and .sln are generated by Unity Editor.
  3. Reopen the project in Unity Editor

If a merge target solution has a project with the same name in the Unity generated solution, you can use use ProjectConflictResolution option to fix the conflict in a 3-way.

  1. Preserve all projects (by default)
  2. Preserve the project in the merge target solution
  3. Preserve the project in the Unity generated solution

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].