File tree Expand file tree Collapse file tree
tests/SelfInitializingFakes.Tests.Api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ public class ApiApproval
2323 [ Theory ]
2424 public void ApproveApi ( string frameworkVersion )
2525 {
26- string codeBase = Assembly . GetExecutingAssembly ( ) . CodeBase ! ;
26+ string codeBase = Assembly . GetExecutingAssembly ( ) . Location ;
2727 UriBuilder uri = new UriBuilder ( new Uri ( codeBase ) ) ;
2828 string assemblyPath = Uri . UnescapeDataString ( uri . Path ) ;
2929 var containingDirectory = Path . GetDirectoryName ( assemblyPath ) ;
30- var configurationName = new DirectoryInfo ( containingDirectory ) . Parent . Name ;
30+ var configurationName = new DirectoryInfo ( containingDirectory ! ) . Parent ! . Name ;
3131 var assemblyFile = Path . GetFullPath (
3232 Path . Combine (
3333 GetSourceDirectory ( ) ,
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFrameworks >netcoreapp3.1 </TargetFrameworks >
4+ <TargetFrameworks >net6.0 </TargetFrameworks >
55 <AssemblyName >SelfInitializingFakes.Tests.Api</AssemblyName >
66 </PropertyGroup >
77
You can’t perform that action at this time.
0 commit comments