Skip to content

Conversation

@wjk
Copy link
Contributor

@wjk wjk commented Oct 10, 2019

While trying to build the VSIX project to prepare another PR, I found and fixed approximately one metric crap-ton of build issues. It works for me now; I also added a quality-of-life batch file that builds the NuGet package. Enjoy!

@kennykerr
Copy link
Collaborator

Thanks! We hadn't got around to getting that building after moving it over from xlang.

vsix/vsix.csproj Outdated
</PropertyGroup>
<ItemGroup>
<Content Include="LICENSE">
<Content Include="..\LICENSE">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't work (when tested with resulting vsix). a limitation of vsix creation - the LICENSE file must be copied from parent (where it's shared by Microsoft.Windows.CppWinRT.nuspec) and .gitignored to not be checked in.

<Error Condition="'$(NatvisDirx86)' == ''" Text="The project must be supplied with a NatvisDirx86 property value" />
<Error Condition="'$(NatvisDirx64)' == ''" Text="The project must be supplied with a NatvisDirx64 property value" />
<Error Condition="'$(NupkgDir)' == ''" Text="The project must be supplied with a NupkgDir property value" />
<Copy SourceFiles="..\LICENSE" DestinationFolder="$(MSBuildProjectDirectory)" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to stay - see above

@@ -0,0 +1,25 @@
@echo off
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kennykerr - we can take this, but it will probably need to be modified to support build pipeline

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather just get the build up and running in one step. Might be simpler to close this PR (without merging) and just fix it all together (along with the internal build).

@microsoft microsoft deleted a comment from wjk Oct 15, 2019
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
<license type="file">LICENSE</license>
<projectUrl>https://github.com/Microsoft/xlang/tree/master/src/package/cppwinrt/nuget</projectUrl>
<iconUrl>https://aka.ms/cppwinrt.ico</iconUrl>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since iconUrl is deprecated, can you replace with an icon element pointing to vsix/cppwinrt.ico, and add that file to the nuspec?

wjk and others added 13 commits October 15, 2019 13:46
Targets marked as Before=Build are run *after* the build
has finished, as the DependsOn targets for are run first,
and they do all the work.
Visual Studio will mangle manual formatting on save when not
using the SDK-style project system. That is what happened with
this line.
This batch file creates the NuGet package, and downloads
NuGet.exe if required.
Since the URL in the tag 404s, I have not included a
replacement icon file in the package.
@Scottj1s
Copy link
Member

Thanks William!

@Scottj1s Scottj1s merged commit afeb973 into microsoft:master Oct 15, 2019
@wjk wjk deleted the fix-vsix-build branch October 16, 2019 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants