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,
2626 state => state with { State = new ResourceStateSnapshot ( KnownResourceStates . FailedToStart , KnownResourceStateStyles . Error ) } ) ;
2727 return ;
2828 }
29+ else
30+ {
31+ logger . LogInformation ( "SQL Server Database project package found at path {DacpacPath}." , dacpacPath ) ;
32+ }
2933
3034 var options = resource . GetDacpacDeployOptions ( ) ;
3135
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ string IResourceWithDacpac.GetDacpacPath()
1717 var projectPath = projectMetadata . ProjectPath ;
1818 using var projectCollection = new ProjectCollection ( ) ;
1919
20- var attr = GetType ( ) . Assembly . GetCustomAttribute < AssemblyConfigurationAttribute > ( ) ;
20+ var attr = Assembly . GetEntryAssembly ( ) ? . GetCustomAttribute < AssemblyConfigurationAttribute > ( ) ;
2121 if ( attr is not null )
2222 projectCollection . SetGlobalProperty ( "Configuration" , attr . Configuration ) ;
2323
You can’t perform that action at this time.
0 commit comments