Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Microsoft.Extensions.DependencyInjection.Extensions;
using CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects;
using Microsoft.SqlServer.Dac;
using System.Reflection;

namespace Aspire.Hosting;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.Build.Evaluation;
using Microsoft.Extensions.Hosting;
using Microsoft.SqlServer.Dac;
using System.Reflection;

Expand All @@ -17,7 +18,7 @@ string IResourceWithDacpac.GetDacpacPath()
var projectPath = projectMetadata.ProjectPath;
using var projectCollection = new ProjectCollection();

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

Expand Down