question

ShawnEckley-1395 avatar image
0 Votes"
ShawnEckley-1395 asked TianyuSun-MSFT commented

Currently having issues with Build Macros in VS 2019 evaluating to empty

Hi ;
I just upgraded our Winforms solution to use .NET5. We are using VS 2019 16.9.4. Ever since the conversion to .NET5 all the build macros we use in the pre and post build events have started showing up as empty during compilation. When you look at the values in the Build Event editor they show the correct values. It is just at compile time that they show up as empty.
When i revert the code back to using .Net Framework 4.8 the macros go back to working.
Does any one know how to correct this? Has anyone else had this issue?


dotnet-runtimevs-msbuild
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

TianyuSun-MSFT avatar image
0 Votes"
TianyuSun-MSFT answered TianyuSun-MSFT commented

Hi @ShawnEckley-1395 , yes, there are some differences between .net framework projects and .net core/.net projects, please check if this document: In the project file helps.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

That helped! Thank you very much!

0 Votes 0 ·

Happy to hear that it helped, have a nice day:)

0 Votes 0 ·