You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a package with custom props and targets following this link. But when I tried to add some properties it didn't work properly.
I added ContinuousIntegrationBuild to props according to this link. Because I use lock file. But ContinuousIntegrationBuild is not set even though GITHUB_ACTIONS property is set.
But it doesn't work. So I had to add it to Directory.Build.targets in all my NuGet package solutions.
3. I tried to set IsAotCompatible for NuGet packages. That property and its dependent properties (IsTrimmable, etc.) were set correctly. However, IsTrimmable was not set in the assemblies I built.
<PropertyGroup Condition="'$(GeneratePackageOnBuild)' == 'true' and ('$(OutputType)' == '' or '$(OutputType)' == 'Library')">
<IsAotCompatible>true</IsAotCompatible>
</PropertyGroup>
According to the link I mentioned earlier, "There are a few things that must not be done in packages' .props and .targets, such as not specifying properties and items that affect restore, as those will be automatically excluded." But it doesn't seem to me that these cases are like that.
This discussion was converted from issue #11253 on January 14, 2025 15:53.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I created a package with custom props and targets following this link. But when I tried to add some properties it didn't work properly.
But it doesn't work. So I had to add it to Directory.Build.targets in all my NuGet package solutions.
3. I tried to set
IsAotCompatible
for NuGet packages. That property and its dependent properties (IsTrimmable, etc.) were set correctly. However, IsTrimmable was not set in the assemblies I built.According to the link I mentioned earlier, "There are a few things that must not be done in packages' .props and .targets, such as not specifying properties and items that affect restore, as those will be automatically excluded." But it doesn't seem to me that these cases are like that.
Beta Was this translation helpful? Give feedback.
All reactions