Skip to content

Commit 7690e5f

Browse files
authored
Use calling assembly for determining build configuration (#598)
* Use calling assembly for determining build configuration * Base configuration on projectMetadata type * Remove unused using
1 parent 3688dd6 commit 7690e5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects/SqlProjectResource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ string IResourceWithDacpac.GetDacpacPath()
1717
var projectPath = projectMetadata.ProjectPath;
1818
using var projectCollection = new ProjectCollection();
1919

20-
var attr = Assembly.GetEntryAssembly()?.GetCustomAttribute<AssemblyConfigurationAttribute>();
20+
var attr = projectMetadata.GetType().Assembly.GetCustomAttribute<AssemblyConfigurationAttribute>();
2121
if (attr is not null)
2222
projectCollection.SetGlobalProperty("Configuration", attr.Configuration);
2323

0 commit comments

Comments
 (0)