Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/msvc
diff options
context:
space:
mode:
authorEgor Bogatov <egorbo@gmail.com>2017-12-05 19:37:15 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2017-12-05 19:37:15 +0300
commit50b6a2e823812ac5f4ac4cde074b482d42bdaf39 (patch)
tree52f8665af2151701eadd3a48267596c25f8ae545 /msvc
parent67c9ed311c0e214f9c58fdc96ad6264927dd6243 (diff)
Fix genproj.cs (make update-solution-files) (#6162)
make update-solution-files works but actually throws an ArgumentOutOfRangeException and as a result - corrupted csproj (fails on System.Runtime.CompilerServices.Unsafe - System.Runtime.CompilerServices.Unsafe.dll.sources is empty)
Diffstat (limited to 'msvc')
-rw-r--r--msvc/scripts/genproj.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/msvc/scripts/genproj.cs b/msvc/scripts/genproj.cs
index 3987abb212b..1e6b41108a7 100644
--- a/msvc/scripts/genproj.cs
+++ b/msvc/scripts/genproj.cs
@@ -756,7 +756,8 @@ class MsbuildGenerator {
sources.AppendFormat (" <Compile Include=\"{0}\" />" + NewLine, src);
}
- sources.Remove (sources.Length - 1, 1);
+ if (sources.Length > 1)
+ sources.Remove (sources.Length - 1, 1);
//if (library == "corlib-build") // otherwise, does not compile on fx_version == 4.0
//{