> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor.client.unity.editor/ks.reactor.client.unity.editor.ksserverprojectupdater.md).

# Class ksServerProjectUpdater

Namespace: [KS.Reactor.Client.Unity.Editor](/reactor/api-reference/ks.reactor.client.unity.editor.md)\
Assembly: KSUnity-Source.dll

Provides methods for updating and syncing the KSServerRuntime project with the file system.

```csharp
public class ksServerProjectUpdater
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [ksServerProjectUpdater](/reactor/api-reference/ks.reactor.client.unity.editor/ks.reactor.client.unity.editor.ksserverprojectupdater.md)

#### Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)), [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Properties

### Instance <a href="#ks_reactor_client_unity_editor_ksserverprojectupdater_instance" id="ks_reactor_client_unity_editor_ksserverprojectupdater_instance"></a>

Singleton instance

```csharp
public static ksServerProjectUpdater Instance { get; }
```

#### Property Value

[ksServerProjectUpdater](/reactor/api-reference/ks.reactor.client.unity.editor/ks.reactor.client.unity.editor.ksserverprojectupdater.md)

## Methods

### AddFileToProject(string) <a href="#ks_reactor_client_unity_editor_ksserverprojectupdater_addfiletoproject_system_string" id="ks_reactor_client_unity_editor_ksserverprojectupdater_addfiletoproject_system_string"></a>

Adds a file to the server runtime project's includes.

```csharp
public void AddFileToProject(string path)
```

#### Parameters

`path` [string](https://learn.microsoft.com/dotnet/api/system.string)

Path to file to add.

### GenerateMissingAsmDefs() <a href="#ks_reactor_client_unity_editor_ksserverprojectupdater_generatemissingasmdefs" id="ks_reactor_client_unity_editor_ksserverprojectupdater_generatemissingasmdefs"></a>

Generates missing asmdef files for common and server scripts.

```csharp
public void GenerateMissingAsmDefs()
```

### UpdateAsmDefPrecompiledReferences() <a href="#ks_reactor_client_unity_editor_ksserverprojectupdater_updateasmdefprecompiledreferences" id="ks_reactor_client_unity_editor_ksserverprojectupdater_updateasmdefprecompiledreferences"></a>

Updates the common and server scripts asmdef files with references to dll files located in the common or server folders.

```csharp
public void UpdateAsmDefPrecompiledReferences()
```

### UpdateIncludes() <a href="#ks_reactor_client_unity_editor_ksserverprojectupdater_updateincludes" id="ks_reactor_client_unity_editor_ksserverprojectupdater_updateincludes"></a>

Updates the contents of the KSServerRuntime project with any unreferenced .cs and dll files and removes references to missing files. Updates the common and server scripts asmdef files with references to dll files.

```csharp
public void UpdateIncludes()
```

### UpdateOutputPath() <a href="#ks_reactor_client_unity_editor_ksserverprojectupdater_updateoutputpath" id="ks_reactor_client_unity_editor_ksserverprojectupdater_updateoutputpath"></a>

Edits the KSServerRuntime project so that output path builds to the installation path.

```csharp
public void UpdateOutputPath()
```
