C#C
C#3y ago
skyslide22

✅ How to get build date of a asp.net app?

i want to display the YYYYMMDD in a blazor wasm app, how can i get the build date to display?
i have tried this
    <PropertyGroup>
        <PreBuildEvent>date +"%Y %m %d" > "$(ProjectDir)wwwroot\BuildDate.txt"</PreBuildEvent>
    </PropertyGroup>

but that creates a file "\wwwroot\BuildDate.txt", not a file IN wwwroot... ????
Was this page helpful?