File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ await resourceNotificationService.PublishUpdateAsync(resource,
26
26
state => state with { State = new ResourceStateSnapshot ( KnownResourceStates . FailedToStart , KnownResourceStateStyles . Error ) } ) ;
27
27
return ;
28
28
}
29
+ else
30
+ {
31
+ logger . LogInformation ( "SQL Server Database project package found at path {DacpacPath}." , dacpacPath ) ;
32
+ }
29
33
30
34
var options = resource . GetDacpacDeployOptions ( ) ;
31
35
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ string IResourceWithDacpac.GetDacpacPath()
17
17
var projectPath = projectMetadata . ProjectPath ;
18
18
using var projectCollection = new ProjectCollection ( ) ;
19
19
20
- var attr = GetType ( ) . Assembly . GetCustomAttribute < AssemblyConfigurationAttribute > ( ) ;
20
+ var attr = Assembly . GetEntryAssembly ( ) ? . GetCustomAttribute < AssemblyConfigurationAttribute > ( ) ;
21
21
if ( attr is not null )
22
22
projectCollection . SetGlobalProperty ( "Configuration" , attr . Configuration ) ;
23
23
You can’t perform that action at this time.
0 commit comments