cross_platform_csproj 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cross_platform_csproj.rb +10 -5
- metadata +1 -1
@@ -98,7 +98,10 @@ class CrossPlatformCSProj
|
|
98
98
|
def self.getRelativePath(path, pathRelative)
|
99
99
|
pathRelative = pathRelative.gsub('/', '\\')
|
100
100
|
path = path.gsub('/', '\\')
|
101
|
-
|
101
|
+
|
102
|
+
if path.start_with?(pathRelative)
|
103
|
+
path = path[pathRelative.length..path.length - 1]
|
104
|
+
end
|
102
105
|
|
103
106
|
if (path.length > 0 and path.start_with?('\\'))
|
104
107
|
return path[1..path.length - 1]
|
@@ -109,7 +112,7 @@ class CrossPlatformCSProj
|
|
109
112
|
|
110
113
|
def self.getCoreFiles(path = '.')
|
111
114
|
fileList = FileList.new()
|
112
|
-
|
115
|
+
|
113
116
|
fileList.include("#{path}/**/*.cs")
|
114
117
|
|
115
118
|
return fileList
|
@@ -136,7 +139,8 @@ class CrossPlatformCSProj
|
|
136
139
|
fileList.exclude("#{path}/**/*.Android.cs")
|
137
140
|
fileList.exclude("#{path}/**/*.Windows.cs")
|
138
141
|
|
139
|
-
fileList.exclude("#{path}/**/
|
142
|
+
fileList.exclude("#{path}/**/Resource.Designer.cs")
|
143
|
+
fileList.exclude("#{path}/**/Resource.designer.cs")
|
140
144
|
|
141
145
|
return fileList;
|
142
146
|
end
|
@@ -150,8 +154,9 @@ class CrossPlatformCSProj
|
|
150
154
|
fileList.exclude("#{path}/**/*.Android.cs")
|
151
155
|
fileList.exclude("#{path}/**/*.IOS.cs")
|
152
156
|
|
153
|
-
fileList.exclude("#{path}/**/
|
154
|
-
|
157
|
+
fileList.exclude("#{path}/**/Resource.Designer.cs")
|
158
|
+
fileList.exclude("#{path}/**/Resource.designer.cs")
|
159
|
+
|
155
160
|
return fileList;
|
156
161
|
end
|
157
162
|
|