Hi @Mikhail,
Welcome to Microsoft Q&A!
How did you push the code to a Git repository?
For error MSB4019, please try to manually copy the Microsoft.WebApplication.targets file (it may be located at “C:\Program Files\Microsoft Visual Studio\2022<version>\MSBuild\Microsoft\VisualStudio\v17.0\WebApplications”) to the location "/usr/share/dotnet/sdk/7.0.305/Microsoft/VisualStudio/v17.0/WebApplications”.
For error MSB3644, please go to your Visual Studio Installer > Modify > Individual components > ensure that “.NET Framework 4.7.2 targeting pack” and “.NET Framework 4.7.2 SDK” are checked.
Then, try pushing your code again.
Sincerely,
Anna
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.