-
-
Notifications
You must be signed in to change notification settings - Fork 19
Suggestion: A small change to how .Design files are handled. #1
Copy link
Copy link
Open
Labels
Description
I see you've used a little trick of setting "CopyLocal" to "false" to deal with the ".Design" files. I think that can be improved upon a little. The .Design files don't need to be referenced at all by the project. It might be better to include them in the parent component (e.g. in the example below I've modified the Xpf.PropertyGrid package to include the .Design file), and make use of the "references" section to reference only the appropriate files. This strategy still seems to work in the editor in Visual Studio. The appropriate .Design file is discovered by the IDE, despite not being referenced.
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>Unofficial.DevExpress.Xpf.PropertyGrid</id>
<version>14.1.7.0</version>
<title>Unofficial.DevExpress.Xpf.PropertyGrid</title>
<authors>Developer Express Inc.</authors>
<owners>Caio Proiete</owners>
<licenseUrl>https://www.devexpress.com/Support/EULAs/NetComponents.xml</licenseUrl>
<projectUrl>https://www.devexpress.com/Subscriptions/DXperience.xml</projectUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>DevExpress.Xpf.PropertyGrid.v14.1, Version=14.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</description>
<summary>Unofficial.DevExpress.Xpf.PropertyGrid NuGet package</summary>
<copyright>Copyright (C) 2000-2014 Developer Express Inc.</copyright>
<tags>unofficial devexpress xpf propertygrid</tags>
<dependencies>
<group targetFramework=".NETFramework4.0">
<dependency id="Unofficial.DevExpress.Xpf.Core" version="14.1.7.0" />
<dependency id="Unofficial.DevExpress.Data" version="14.1.7.0" />
<dependency id="Unofficial.DevExpress.Mvvm" version="14.1.7.0" />
</group>
</dependencies>
<references>
<reference file="DevExpress.Xpf.PropertyGrid.v14.1.dll" /><!-- by omitting the .Design.dll here, it will not be referenced in the project -->
</references>
</metadata>
<files>
<file src="lib\DevExpress.Xpf.PropertyGrid.v14.1.dll" target="lib\net40" />
<file src="lib\DevExpress.Xpf.PropertyGrid.v14.1.xml" target="lib\net40" />
<file src="lib\Design\DevExpress.Xpf.PropertyGrid.v14.1.Design.dll" target="lib\net40" />
</files>
</package>
Reactions are currently unavailable