Skip to content

Commit ebba7db

Browse files
committed
Modify csproj files only on changes #18
1 parent 3157849 commit ebba7db

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

extra/CompilerPlugin/CSharpProjectProcessor.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ private static bool OnPreGeneratingCSProjectFiles()
1919

2020
private static void UpdateProjectFile(string file)
2121
{
22+
// strip out `LangVersion` elements
2223
var lines = File.ReadAllLines(file);
23-
lines = lines.Where(line => line.Contains("LangVersion") == false).ToArray();
24-
File.WriteAllLines(file, lines);
24+
var newLines = lines.Where(line => line.Contains("<LangVersion") == false && line.Contains("LangVersion>") == false).ToArray();
25+
if (lines.Count() != newLines.Count())
26+
File.WriteAllLines(file, newLines);
2527
}
26-
}
28+
}

samples/Basic/ProjectSettings/ProjectSettings.asset

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,14 @@ PlayerSettings:
6464
xboxEnableHeadOrientation: 0
6565
xboxEnableGuest: 0
6666
xboxEnablePIXSampling: 0
67+
xboxEnableEnableRenderThreadRunsJobs: 0
6768
n3dsDisableStereoscopicView: 0
6869
n3dsEnableSharedListOpt: 1
6970
n3dsEnableVSync: 0
7071
uiUse16BitDepthBuffer: 0
7172
ignoreAlphaClear: 0
7273
xboxOneResolution: 0
74+
xboxOneMonoLoggingLevel: 0
7375
ps3SplashScreen: {fileID: 0}
7476
videoMemoryForVertexBuffers: 0
7577
psp2PowerMode: 0
@@ -252,6 +254,7 @@ PlayerSettings:
252254
ps4NPtitleDatPath:
253255
ps4RemotePlayKeyAssignment: -1
254256
ps4RemotePlayKeyMappingDir:
257+
ps4PlayTogetherPlayerCount: 0
255258
ps4EnterButtonAssignment: 1
256259
ps4ApplicationParam1: 0
257260
ps4ApplicationParam2: 0
@@ -278,6 +281,8 @@ PlayerSettings:
278281
ps4attribMoveSupport: 0
279282
ps4attrib3DSupport: 0
280283
ps4attribShareSupport: 0
284+
ps4attribExclusiveVR: 0
285+
ps4disableAutoHideSplash: 0
281286
ps4IncludedModules: []
282287
monoEnv:
283288
psp2Splashimage: {fileID: 0}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
m_EditorVersion: 5.3.5f1
1+
m_EditorVersion: 5.3.6f1
22
m_StandardAssetsVersion: 0

0 commit comments

Comments
 (0)