File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -189,13 +189,13 @@ private void AddFrameworkDependencies(JObject json, string jsonPath)
189189 /// (together with used package information) required for compilation.
190190 /// </summary>
191191 /// <returns>True if parsing succeeds, otherwise false.</returns>
192- public bool TryParse ( string json )
192+ public bool TryParse ( string json , string ? jsonPath = null )
193193 {
194194 try
195195 {
196196 var obj = JObject . Parse ( json ) ;
197- AddPackageDependencies ( obj , json ) ;
198- AddFrameworkDependencies ( obj , json ) ;
197+ AddPackageDependencies ( obj , jsonPath ?? json ) ;
198+ AddFrameworkDependencies ( obj , jsonPath ?? json ) ;
199199 return true ;
200200 }
201201 catch ( Exception e )
@@ -228,7 +228,7 @@ public void AddDependencies(string asset)
228228 {
229229 if ( TryReadAllText ( asset , logger , out var json ) )
230230 {
231- TryParse ( json ) ;
231+ TryParse ( json , asset ) ;
232232 }
233233 }
234234
You can’t perform that action at this time.
0 commit comments