Created
February 22, 2015 11:41
-
-
Save CosminLazar/78d99c4d57f9de097fd2 to your computer and use it in GitHub Desktop.
Code samples for the for blog post: http://everydaylifein.net/netframework/modifying-the-project-during-nuget-package-installation-and-removal.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$x86TalkFX = $project.ProjectItems.Item("CroccatTalkWrapper").ProjectItems.Item("win32-x86").ProjectItems.Item("talkfx-c.dll"); | |
$x86TalkFX.Properties.Item("BuildAction").Value = [int]2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$x86TalkFX = $project.ProjectItems.Item("CroccatTalkWrapper").ProjectItems.Item("win32-x86").ProjectItems.Item("talkfx-c.dll"); | |
$x86TalkFX.Properties.Item("CopyToOutputDirectory").Value = [int]2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param($installPath, $toolsPath, $package, $project) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$project = Get-Project [projectname] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment