Comments (10)
Hey csnazell, sorry to hear about that. I'll take a look to see what's going on. To confirm, these are the NOV 10586 samples, correct?
from windowscompositionsamples.
Yes, I was having a look at the NOV 10586 samples.
Thanks.
from windowscompositionsamples.
FYI - I didn't have to do anything to the composition visual sample and it just compiles and runs...
from windowscompositionsamples.
Steps to recreate:
- Download Zip of repo
- Unpack to C:\ (since the zip's internal filepaths are too long to unpack into C:\User...)
- Copy composition-master into C:\User...\VS2015\Projects
- cd into SDK10586_NOV_UPDATE_RTM\CompositionVisual\
- open composition visual sample solution in VS2015
- clean
- rebuild
- won't build
Reported error:
>...\compositionvisual\compositionvisual.csproj(128,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.Diagnostics.Tracing.EventSource.Redist.1.1.16-beta\build\portable-net45+win8+wpa81\Microsoft.Diagnostics.Tracing.EventSource.Redist.targets.
The referenced go.microsoft link dumps you into the root of docs.nuget.org
Cause seems to be the following in the .csproj:
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Microsoft.Diagnostics.Tracing.EventSource.Redist.1.1.16-beta\build\portable-net45+win8+wpa81\Microsoft.Diagnostics.Tracing.EventSource.Redist.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Diagnostics.Tracing.EventSource.Redist.1.1.16-beta\build\portable-net45+win8+wpa81\Microsoft.Diagnostics.Tracing.EventSource.Redist.targets'))" />
<Error Condition="!Exists('..\packages\Microsoft.ApplicationInsights.0.14.3-build00177\build\portable-win81+wpa81\Microsoft.ApplicationInsights.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.ApplicationInsights.0.14.3-build00177\build\portable-win81+wpa81\Microsoft.ApplicationInsights.targets'))" />
</Target>
Commenting out this section & the related tags enables the projects to build & run so these packages are clearly not referenced in the code.
from windowscompositionsamples.
This is just how the new project structure works.
The code repo is not supposed to store all the referencing packages. You will need to download them if they don't exist in your local drive.
This is normally an automatic process by the NPM. If it's not doing it, just go tick Allow NuGet to download missing packages in your VS settings.
from windowscompositionsamples.
@JustinXinLiu
I'd dispute the "new" bit of your comment gIven that none of the projects I've created in VS2015 that reference nuget packages replicate this structure.
I do in fact have Allow NuGet to download missing packages turned on and it isn't downloading these packages.
Referencing packages that aren't used, and add no material value to the project is not best practice.
from windowscompositionsamples.
That's because the name of packages.config is changed to project.json. But it's doing the same thing...
from windowscompositionsamples.
@JustinXinLiu
The current IDE & tool chain doesn't even attempt to process packages.config, even with the indicated options checked. In fact deleting this file from the sample has no effect on the build process. The NuGet tooling is actually looking at the project.json file included in the sample although not referenced in the project. Comparison of the contents of the two files reveals they're referencing different dependencies. So I don't understand how it's at all relevant to getting this sample to build in a clean environment.
I appreciate you are trying to be helpful but to be clear, I did get everything to build as indicated in the first line of the issue description.
from windowscompositionsamples.
Interesting. So it seems if you just download/clone the repo and attempt to build normally then everything works fine. However, if you clean first and then attempt a rebuild as you mentioned in your steps this is where the issue repros. I'm not sure why this makes a difference for the application insights and diagnostic packages (manually installing the packages also doesn't resolve the issue, as it is looking for a specific version that doesn't seem to be on NuGet).
This is one of our oldest samples, and I'm not sure if it was created by a prerelease version of VS2015. That might explain some of the strange behavior, however. I'll try replacing it with a newly generated project and see if this fixes things. Thanks for bringing this to our attention.
from windowscompositionsamples.
Closing. We've moved the CompositionVisual sample here. If you are seeing issues with building samples continue to let us know. Thanks!
from windowscompositionsamples.
Related Issues (20)
- GraphicsCaptureItem.CreateFromVisual has blur
- A little doubt about about code in ThumbnailLighting.xaml.cs HOT 3
- Build error in VS2019 and VS2019 preview HOT 3
- Does Windows.UI.Composition support Direct3D 12?
- how to apply effects to any shape of area of an xaml element or visual element? HOT 2
- AnimationController.Progress always return zero HOT 2
- Add sample for Snap points / Inertia modifiers
- Use Windows Community Toolkit library instead of custom code HOT 1
- Navigation Flow example crashing HOT 1
- Grammatical error HOT 1
- WindowsComposition Animation End Event missing. HOT 1
- Is Windows Composition API dead? HOT 4
- Channel 9 links on Resources page re-direct to the same Microsoft Docs page HOT 1
- Taking a screenshot of windows with AllowsTransparency="True" HOT 1
- Can we have C++ samples?
- Official DirectComposition Interop
- Looks like a bug in ImageLoader.cs
- Docs on IAnimationObject and CompositionAnimation.SetExpressionReferenceParameter HOT 2
- Crash when quickly minimize/restore window HOT 1
- Update to .NET 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windowscompositionsamples.