8 instantiations of FileFormatException
NuGet.CommandLine.XPlat (1)
Commands\Why\DependencyGraphFinder.cs (1)
44
throw new
FileFormatException
(Strings.WhyCommand_Error_InconsistentAssetsFile);
NuGet.ProjectModel (7)
FileFormatException.cs (7)
69
var ex = new
FileFormatException
(message, exception);
83
var ex = new
FileFormatException
(message, exception);
95
var ex = new
FileFormatException
(message, exception);
104
var ex = new
FileFormatException
(message);
111
var ex = new
FileFormatException
(message);
125
return new
FileFormatException
(message, exception)
132
return new
FileFormatException
(message)
37 references to FileFormatException
dotnet (1)
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (1)
259
catch (
FileFormatException
)
NuGet.ProjectModel (36)
DependencyGraphSpec.cs (1)
292
throw
FileFormatException
.Create(ex, path);
FileFormatException.cs (16)
27
private
FileFormatException
WithFilePath(string path)
34
private
FileFormatException
WithLineInfo(JsonReaderException exception)
42
private
FileFormatException
WithLineInfo(int line, int column)
50
private
FileFormatException
WithLineInfo(IJsonLineInfo lineInfo)
58
public static
FileFormatException
Create(Exception exception, JToken value, string path)
69
var
ex = new FileFormatException(message, exception);
74
internal static
FileFormatException
Create(Exception exception, int line, int column, string path)
83
var
ex = new FileFormatException(message, exception);
88
internal static
FileFormatException
Create(Exception exception, string path)
95
var
ex = new FileFormatException(message, exception);
100
public static
FileFormatException
Create(string message, JToken value, string path)
104
var
ex = new FileFormatException(message);
109
internal static
FileFormatException
Create(string message, int line, int column, string path)
111
var
ex = new FileFormatException(message);
116
internal static
FileFormatException
Create(JsonReaderException exception, string path)
130
internal static
FileFormatException
Create(string message, string path)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (19)
154
throw
FileFormatException
.Create(ex, version, packageSpec.FilePath);
193
throw
FileFormatException
.Create(
240
throw
FileFormatException
.Create(
248
throw
FileFormatException
.Create(
324
throw
FileFormatException
.Create("Unable to resolve dependency ''.", packageSpecPath);
410
throw
FileFormatException
.Create(ex, packageSpecPath);
439
throw
FileFormatException
.Create(
450
throw
FileFormatException
.Create(
503
throw
FileFormatException
.Create("Unable to resolve central version ''.", filePath);
510
throw
FileFormatException
.Create("The version cannot be null or empty.", filePath);
531
throw
FileFormatException
.Create("Unable to resolve package to prune ''.", filePath);
538
throw
FileFormatException
.Create("The version cannot be null or empty.", filePath);
619
throw
FileFormatException
.Create(
632
throw
FileFormatException
.Create(
654
throw
FileFormatException
.Create(
675
throw
FileFormatException
.Create(
716
throw
FileFormatException
.Create(ex, packageSpec.FilePath);
734
throw
FileFormatException
.Create(
1304
throw
FileFormatException
.Create(