Forum Discussion
Unable to deploy/push to a GitHub the .Net 4.72 ASMX Webservice because of error MSB4019 (Microsoft.
MikhailPodolski
1. Did you check if the SDK version mentioned in the error is present on build server?
2. Check the csproj files if target version is mentioned as netstandard2.0 and if there are no conflicting or outdated versions.
3. If you have multiple versions on build server you can mention this just below project tag.
<PropertyGroup> <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch> </PropertyGroup>
Let me know if you have tried all these things and still its not working.
I hope I understood the problem right.
- MikhailPodolskiJul 08, 2023Brass Contributor
santosh_ms thank you very much for your hint
After an extensive research I came to a realization that I might to update the build_check.yaml file for a solution. Currently it accounts for the .NET Core. Should I update it in some specific way to account for the .Net Framework 4.7.2?
Here are the contents of the yaml file that I currently have
Copyname: Build check on: pull_request: jobs: test: name: Build check runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Setup .NET Core uses: actions/setup-dotnet@v3 with: dotnet-version: | 6.0.x 7.0.x - name: Restore packages for solution run: dotnet restore - name: Build solution run: dotnet build --no-restore -c debug # - name: Run tests # run: dotnet test --no-build -c debug