NETSDK1195: Trimming, or code compatibility analysis for trimming, single-file deployment, or ahead-of-time compilation is not supported for the target framework.
NETSDK1195 indicates that you're using a feature of the SDK which is not available for the selected target framework. The following features depend on the ILLink pack, which is only available when targeting netcoreapp3.0
and above:
- Trimming (via
PublishTrimmed
orPublishAot
) - Trim analysis (via
PublishTrimmed
,PublishAot
,IsTrimmable
,IsAotCompatible
, orEnableTrimAnalyzer
) - Single-file analysis (via
PublishSingleFile
orEnableSingleFileAnalyzer
) - Ahead-of-time compilation analysis (via
PublishAot
orEnableAotAnalyzer
)
To resolve this error, either target a supported TargetFramework
, or turn off the setting that requires the ILLink pack.
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.