Error publishing (to Azure) dotnetcore app after upgrading from dotnetcore 2.0 to 2.1
Background:
We just upgraded from dotnetcore 2.0 to 2.1. Most stations had the build successfully except 1, but that was because he had some dependencies projects of his own, we changed them all to 2.1 and he also had referenced one of them both in Assembly and in Projects, we removes the assembly as suggested in stackoverflow.
Then while trying to publish we got this exception in most stations:
Most answers hiding in github mentioned deleting the bin and obj, and than help a couple of stations.
We then also Clean and Rebuild, but that also helped just a couple more.
Eventually by mistake I played and changed the Publish Configuration Settings, Save, Publish, and back to old configuration and it worked. I guess that it cleaned it own publish conf cash.
We just upgraded from dotnetcore 2.0 to 2.1. Most stations had the build successfully except 1, but that was because he had some dependencies projects of his own, we changed them all to 2.1 and he also had referenced one of them both in Assembly and in Projects, we removes the assembly as suggested in stackoverflow.
Then while trying to publish we got this exception in most stations:
Assets file '(project)\obj\project.assets.json' doesn't have a target for '.NETCoreApp,Version=v2.0'. Ensure that restore has run and that you have included 'netcoreapp2.0' in the TargetFrameworks for your project.Most answers hiding in github mentioned deleting the bin and obj, and than help a couple of stations.
We then also Clean and Rebuild, but that also helped just a couple more.
Eventually by mistake I played and changed the Publish Configuration Settings, Save, Publish, and back to old configuration and it worked. I guess that it cleaned it own publish conf cash.
This is a great post. I like this topic.This site has lots of advantage.I found many interesting things from this site. It helps me in many ways.Thanks for posting.our sclinbio.com 🙂
ReplyDeleteThanks for sharing this! Upgrading between .NET Core versions can often cause unexpected issues, especially with lingering references and mismatched TargetFrameworks. Your note about checking the project.assets.json file and eliminating dual references (Assembly + Project) is a key takeaway. This post will definitely help others facing similar publish-time errors after migration.
ReplyDeleteAI Powered Digital Marketing Course In Hyderabad.
"Your blog is quickly becoming one of my favorites. Every post offers real value, and this one is no exception."
ReplyDeleteAzure Data Engineer Training In Hyderabad
This is a really useful write-up! The error with project.assets.json after upgrading from .NET Core 2.0 to 2.1 can be quite confusing, and your note about cleaning the publish configuration cache adds a practical troubleshooting step that many developers might overlook.
ReplyDeleteDigital Marketing Course In Hyderabad.
Thanks for sharing this! Your solution to the .NET Core 2.0 to 2.1 upgrade error was very helpful. Changing the publish configuration settings worked for me too. Great tips.
ReplyDeleteGenerative AI Training In Hyderabad
Thank you for this insightful guide on troubleshooting Azure publishing errors in .NET Core applications. Your step-by-step approach, including checking SDK versions, verifying connection strings, and ensuring proper permissions, provides a comprehensive solution to common deployment issues. The emphasis on examining logs and utilizing diagnostic tools further aids in pinpointing the root causes of failures.
ReplyDeleteAt Fast Prep Academy, we emphasize the importance of mastering deployment strategies and troubleshooting techniques to ensure smooth application releases. Your article serves as an excellent resource for learners aiming to deepen their understanding of Azure deployments.
Thanks for breaking down the error scenario for Azure + .NET Core deployment — seeing your actual error and fix makes it easier for others who might run into something similar. The post helps demystify what can go wrong when deploying to cloud environments. For readers juggling projects and exam-style prep, sat coaching online by Fast Prep Academy might help you manage both smoothly.
ReplyDeleteThis post is an incredibly helpful technical resource for developers navigating the complexities of Azure deployments! Providing a clear, step-by-step solution for the .NET Core "Error Publishing" issue—specifically identifying how temporary file locks or build configuration mismatches can disrupt the process—offers a practical roadmap for maintaining a smooth development workflow. I especially liked the focus on cleaning the solution and verifying the project’s target runtime, as these are often the small details that make the biggest difference in successful cloud integration. Just as a well-resolved technical error ensures system stability and performance, specialized medical expertise is vital for health, which is what we prioritize at our Multispeciality Hospital in Kadapa. Thanks for sharing these valuable software development and cloud computing insights!
ReplyDeleteThis post is an excellent technical reference for SharePoint administrators, providing much-needed clarity on the specific mapped and crawled properties required to manage URL fields effectively! Highlighting the relationship between crawled properties like ows_URL and their corresponding managed properties is vital for ensuring that search results and data queries remain accurate. I especially liked the straightforward breakdown of how to configure these settings to ensure seamless data retrieval across the platform. Just as precise technical configurations ensure a reliable digital infrastructure, specialized medical expertise is vital for health, which is what we prioritize at our Multispeciality Hospital in Kadapa. Thanks for sharing these valuable SharePoint and search optimization insights!
ReplyDelete