Skip to content

Commit 11b01a1

Browse files
committed
Revert "Ensuring the right configuration is selected when loading the dacpack"
This reverts commit 01d7355.
1 parent 01d7355 commit 11b01a1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using Microsoft.Build.Evaluation;
22
using Microsoft.SqlServer.Dac;
3-
using System.Reflection;
43

54
namespace Aspire.Hosting.ApplicationModel;
65

@@ -15,14 +14,7 @@ string IResourceWithDacpac.GetDacpacPath()
1514
if (this.TryGetLastAnnotation<IProjectMetadata>(out var projectMetadata))
1615
{
1716
var projectPath = projectMetadata.ProjectPath;
18-
19-
var attr = this.GetType().Assembly.GetCustomAttribute<AssemblyConfigurationAttribute>();
20-
2117
using var projectCollection = new ProjectCollection();
22-
23-
if (attr is not null)
24-
projectCollection.SetGlobalProperty("Configuration", attr.Configuration);
25-
2618
var project = projectCollection.LoadProject(projectPath);
2719

2820
// .sqlprojx has a SqlTargetPath property, so try that first

0 commit comments

Comments
 (0)