@@ -77,7 +77,7 @@ private record class ReferenceInfo(string? Type, Dictionary<string, object>? Com
77
77
/// "json.net"
78
78
/// }
79
79
/// </summary>
80
- private void AddPackageDependencies ( JObject json )
80
+ private void AddPackageDependencies ( JObject json , string jsonPath )
81
81
{
82
82
// If there is more than one framework we need to pick just one.
83
83
// To ensure stability we pick one based on the lexicographic order of
@@ -91,7 +91,7 @@ private void AddPackageDependencies(JObject json)
91
91
92
92
if ( references is null )
93
93
{
94
- logger . LogDebug ( "No references found in the targets section in the assets file. " ) ;
94
+ logger . LogDebug ( $ "No references found in the targets section in ' { jsonPath } ' ") ;
95
95
return ;
96
96
}
97
97
@@ -154,7 +154,7 @@ private void AddPackageDependencies(JObject json)
154
154
/// "microsoft.netcore.app.ref"
155
155
/// }
156
156
/// </summary>
157
- private void AddFrameworkDependencies ( JObject json )
157
+ private void AddFrameworkDependencies ( JObject json , string jsonPath )
158
158
{
159
159
160
160
var frameworks = json
@@ -163,7 +163,7 @@ private void AddFrameworkDependencies(JObject json)
163
163
164
164
if ( frameworks is null )
165
165
{
166
- logger . LogDebug ( "No framework section in assets.json ." ) ;
166
+ logger . LogDebug ( $ "No framework section in ' { jsonPath } ' .") ;
167
167
return ;
168
168
}
169
169
@@ -177,7 +177,7 @@ private void AddFrameworkDependencies(JObject json)
177
177
178
178
if ( references is null )
179
179
{
180
- logger . LogDebug ( "No framework references in assets.json ." ) ;
180
+ logger . LogDebug ( $ "No framework references in ' { jsonPath } ' .") ;
181
181
return ;
182
182
}
183
183
@@ -196,8 +196,8 @@ public bool TryParse(string json)
196
196
try
197
197
{
198
198
var obj = JObject . Parse ( json ) ;
199
- AddPackageDependencies ( obj ) ;
200
- AddFrameworkDependencies ( obj ) ;
199
+ AddPackageDependencies ( obj , json ) ;
200
+ AddFrameworkDependencies ( obj , json ) ;
201
201
return true ;
202
202
}
203
203
catch ( Exception e )
0 commit comments