I'm building a NuGet package that uses the new features in NuGet 2.5 to automatically update the project file to include a *.props
and *.targets
file to add support for custom build steps. Currently these files are included in the NuGet package under the following paths:
/build/net35
: These are the.props
and.targets
files for projects using MSBuild 3.5 (i.e. Visual Studio 2008), regardless of which target framework their project targets./build/net40
: These are the.props
and.targets
files for projects using MSBuild 4.0 (i.e. Visual Studio 2010-2012), regardless of which target framework their project targets.
Unfortunately NuGet does not appear to behave the way I expected, and the /build/net35
folder is getting used for projects using MSBuild 4.0 (Visual Studio 2012) that target .NET 3.5. How can I restructure the package to separate my build customizations based upon which version of MSBuild the project uses, and not by what the target framework is?