@@ -40,6 +40,7 @@ public class Project : IDisposable
40
40
public string TemplateOutputDir { get ; set ; }
41
41
public string TargetFramework { get ; set ; } = GetAssemblyMetadata ( "Test.DefaultTargetFramework" ) ;
42
42
public string RuntimeIdentifier { get ; set ; } = string . Empty ;
43
+ public static DevelopmentCertificate DevCert { get ; } = DevelopmentCertificate . Create ( AppContext . BaseDirectory ) ;
43
44
44
45
public string TemplateBuildDir => Path . Combine ( TemplateOutputDir , "bin" , "Debug" , TargetFramework , RuntimeIdentifier ) ;
45
46
public string TemplatePublishDir => Path . Combine ( TemplateOutputDir , "bin" , "Release" , TargetFramework , RuntimeIdentifier , "publish" ) ;
@@ -178,7 +179,7 @@ internal AspNetProcess StartBuiltProjectAsync(bool hasListeningUri = true, ILogg
178
179
}
179
180
180
181
var projectDll = Path . Combine ( TemplateBuildDir , $ "{ ProjectName } .dll") ;
181
- return new AspNetProcess ( Output , TemplateOutputDir , projectDll , environment , published : false , hasListeningUri : hasListeningUri , logger : logger ) ;
182
+ return new AspNetProcess ( DevCert , Output , TemplateOutputDir , projectDll , environment , published : false , hasListeningUri : hasListeningUri , logger : logger ) ;
182
183
}
183
184
184
185
internal AspNetProcess StartPublishedProjectAsync ( bool hasListeningUri = true , bool usePublishedAppHost = false )
@@ -193,7 +194,7 @@ internal AspNetProcess StartPublishedProjectAsync(bool hasListeningUri = true, b
193
194
} ;
194
195
195
196
var projectDll = Path . Combine ( TemplatePublishDir , $ "{ ProjectName } .dll") ;
196
- return new AspNetProcess ( Output , TemplatePublishDir , projectDll , environment , published : true , hasListeningUri : hasListeningUri , usePublishedAppHost : usePublishedAppHost ) ;
197
+ return new AspNetProcess ( DevCert , Output , TemplatePublishDir , projectDll , environment , published : true , hasListeningUri : hasListeningUri , usePublishedAppHost : usePublishedAppHost ) ;
197
198
}
198
199
199
200
internal async Task < ProcessResult > RunDotNetEfCreateMigrationAsync ( string migrationName )
0 commit comments