-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Will not publish containers for non-web projects #219
Comments
I've found that if you change the project type to |
Seems like they fixed this in 8.0.200, so that all project types can now use /t:PublishContainer I'll get it changed - cheers :) |
This has just gone out in v8.0.4 (nuget in ten mins or so) One thing you will have to do though for Sdk (console) apps. You don't need to add the containers nuget package as its backed into the sdk, but you have to add <PropertyGroup>
<IsPublishable>true</IsPublishable>
<EnableSdkContainerSupport>true</EnableSdkContainerSupport>
</PropertyGroup> |
🔥 Bug Description
Our application is a mixture of projects of
<Project Sdk="Microsoft.NET.Sdk.Web">
and<Project Sdk="Microsoft.NET.Sdk">
types. AllMicrosoft.NET.Sdk
project types displayA publish profile with the name 'DefaultContainer' was not found in the project. Set the PublishProfile property to a valid file name.
and do not push a container to the repository duringaspirate build
🔍 Steps to Reproduce the Bug
<Project Sdk="Microsoft.NET.Sdk">
project referenced in yourAppHost
project.aspirate build
aspirate apply
and no container will be running because it isn't in the repository.🧯 Possible Solution
dotnet/sdk-container-builds
there are two different commands, one for web project and a different one for non-web projects. I am guessing this is where the issue is coming from.The text was updated successfully, but these errors were encountered: