Description of changes:
Also checks for self contained in the csproj file in addition to the ms build arguments. This allows publishing a .NET 7 custom runtime without native AOT from the SAM CLI where msbuild parameters can't be passed.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue #, if available: https://github.com/aws/aws-extensions-for-dotnet-cli/issues/270
Description of changes: Also checks for self contained in the csproj file in addition to the ms build arguments. This allows publishing a .NET 7 custom runtime without native AOT from the SAM CLI where msbuild parameters can't be passed.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.