Versioned Artifacts for .NET Framework and .NET Core application(s)

Arjun Goel 0 Reputation points
2024-04-17T17:41:02.4466667+00:00

Hi Microsoft, I am trying to create versioned artifacts for dotnet applications (.NET Framework & .NET Core) using msbuild and dotnet CLI commands. I ran it for msbuild while implementing CI/CD pipeline using GitHub Actions following Microsoft's documentation and the command I ran was:

msbuild TestHESWebSolution.sln /p:Configuration=Release /p:DeployOnBuild=true /p:AutoParameterizationWebConfigConnectionStrings=False /p:Version=${{  github.ref_name }}

but the build/artifacts are not versioned.

Please help!

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,175 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,261 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 56,286 Reputation points
    2024-04-18T15:57:12.3+00:00

    how are you using the Version environment variable in your project files? how are you versioning your artifacts?

    0 comments No comments