Skip to content

Commit 69ea414

Browse files
authored
Remove throw for baseline contract failure (#5301)
1 parent d049e37 commit 69ea414

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/AutoRest.CSharp/Common/Input/Source/SourceInputModel.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,6 @@ private bool TryGetName(ISymbol symbol, [NotNullWhen(true)] out string? name)
159159
{
160160
return await GeneratedCodeWorkspace.CreatePreviousContractFromDll(Path.Combine(nugetFolder, $"{Configuration.Namespace}.xml"), fullPath);
161161
}
162-
else
163-
{
164-
throw new InvalidOperationException($"Can't find Baseline contract assembly ({Configuration.Namespace}@{baselineVersion}) from Nuget Global Package Folder at {fullPath}. " +
165-
$"Please make sure the baseline nuget package has been installed properly");
166-
}
167162
}
168163
return null;
169164
}

0 commit comments

Comments
 (0)