Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Help- Can't build project/ start new instance #104

Closed
kereeen opened this issue Oct 18, 2015 · 5 comments
Closed

Need Help- Can't build project/ start new instance #104

kereeen opened this issue Oct 18, 2015 · 5 comments

Comments

@kereeen
Copy link

kereeen commented Oct 18, 2015

Hello. I'm using Visual Studio 2012 for this. I downloaded the project as .zip. Restored the packages. Installed every materialdesign in I can find in Nuget. What step did I miss?

1>------ Build started: Project: MaterialDesignColors.Wpf, Configuration: Debug Any CPU ------
1>Project file contains ToolsVersion="12.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="4.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.
1>D:\1\MaterialDesignInXamlToolkit-master\MaterialDesignColors.Wpf\Swatch.cs(40,32,40,34): error CS1002: ; expected
1>D:\1\MaterialDesignInXamlToolkit-master\MaterialDesignColors.Wpf\Swatch.cs(40,49,40,50): error CS1519: Invalid token '(' in class, struct, or interface member declaration
1>D:\1\MaterialDesignInXamlToolkit-master\MaterialDesignColors.Wpf\SwatchesProvider.cs(91,17,91,18): error CS1056: Unexpected character '$'
2>------ Build started: Project: MahMaterialDragablzMashUp, Configuration: Debug Any CPU ------
2>Project file contains ToolsVersion="12.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="4.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.
2> Restoring NuGet packages...
2> To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'.
2> All packages listed in packages.config are already installed.
2>Project file contains ToolsVersion="12.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="4.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.
2>Project file contains ToolsVersion="12.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="4.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.
2>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3243: No way to resolve conflict between "MaterialDesignColors, Version=1.0.0.14576, Culture=neutral, PublicKeyToken=null" and "MaterialDesignColors". Choosing "MaterialDesignColors, Version=1.0.0.14576, Culture=neutral, PublicKeyToken=null" arbitrarily.
2>Project file contains ToolsVersion="12.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="4.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.
2>CSC : error CS0006: Metadata file 'D:\1\MaterialDesignInXamlToolkit-master\MaterialDesignColors.Wpf\bin\Debug\MaterialDesignColors.dll' could not be found
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

@kereeen kereeen changed the title Need Help Need Help- Can't build project/ start new instance Oct 18, 2015
@ButchersBoy
Copy link
Collaborator

Hi, to build the demo/source (all in same solution) you require VS2015, as it uses C#6.

You can still use the binaries in VS2015 though, but you'll have to follow the wiki/blog posts to set up your App.xaml and get yourself up and running.

So start with a brand new project and report back for further help.

@kereeen
Copy link
Author

kereeen commented Oct 18, 2015

So I can't use VS2012 to build but I can use it of I will start a brand new project? Or am I really required to use VS2015 either way? Thanks. 😄

@ButchersBoy
Copy link
Collaborator

  • Start a clean project in VS2012
  • Install binaries
    • Install from nuget if you are targetiing .net4.5
    • Install from the .Net 4.0 zip if you are targetiing .net4.0
  • Configure App.xaml
  • Make sweet UI

No need for VS2015.

You only need 2015 if you are trying to compile the solution on GitHub, which contains the source used to make the binaries, and a demo project.

@kereeen
Copy link
Author

kereeen commented Oct 18, 2015

Got it. Thanks 👍

@kereeen kereeen closed this as completed Oct 18, 2015
@kereeen kereeen reopened this Nov 8, 2015
@kereeen kereeen closed this as completed Nov 8, 2015
@kereeen
Copy link
Author

kereeen commented Nov 8, 2015

How do I install from the .Net 4.0 zip?

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

No branches or pull requests

2 participants