This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I need to construct the following JSON in C#, it will be sent on the wire afterwards: | |
{ | |
"custom_collection": { | |
"title": "IPods", | |
"collects": [ | |
{ | |
"product_id": 921728736 | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you're using Angular 1.2+, jQuery 2.1+, jQuery UI 1.x+ together, you can easily get a weird error like this: | |
TypeError: undefined is not a function | |
at replaceWith (http://myapp.com/app/bower_components/angular/angular.js:7289:26) | |
at applyDirectivesToNode (http://myapp.com/app/bower_components/angular/angular.js:6518:13) | |
at compileNodes (http://myapp.com/app/bower_components/angular/angular.js:6167:15) | |
at compileNodes (http://myapp.com/app/bower_components/angular/angular.js:6179:15) | |
at compile (http://myapp.com/app/bower_components/angular/angular.js:6107:15) | |
at http://myapp.com/app/bower_components/angular/angular.js:1506:11 | |
at Scope.$eval (http://myapp.com/app/bower_components/angular/angular.js:12903:28) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$solution = Get-Item DTE:\Solution | |
$solution.SolutionBuild.SolutionConfigurations.Add("My New Config", "Debug", $True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ModelRoot { | |
IEnumerable<ImportStatement> ImportStatement { get; set; } | |
IEnumerable<ModelMember> ModelMembers { get; set; } | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-Type -AssemblyName NugetConsole.Host.PowerShell | |
# | |
# These functions are from Nuget test sources, the key here is to get access to an IVsPackageSourceProvider instance. | |
# | |
function Get-Interface | |
{ | |
Param( | |
$Object, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I've Win8.1, VS 2013 with Update 2 RC. | |
System.ComponentModel.Composition.CompositionException: The composition produced a single composition error, with 2 root causes. The root causes are provided below. Review the CompositionException.Errors property for more detailed information. | |
1) Could not finishing composing object of type 'Nitra.VisualStudio.NitraGlobalConfig'. The import ' ContractName Microsoft.VisualStudio.Utilities.IContentTypeRegistryService RequiredTypeIdentity Microsoft.VisualStudio.Utilities.IContentTypeRegistryService' was not satisfied. Resulting in: Cannot get export 'Nitra.VisualStudio.NitraGlobalConfig (ContractName="Nitra.VisualStudio.INitraGlobalConfig")' from part 'Nitra.VisualStudio.NitraGlobalConfig'. Element: Nitra.VisualStudio.NitraGlobalConfig (ContractName="Nitra.VisualStudio.INitraGlobalConfig") --> Nitra.VisualStudio.NitraGlobalConfig Resulting in: Cannot set import 'Nitra.VisualStudio.ViewCreationListener.NitraGlobalConfig (ContractName="Nitra.VisualStudio.INitraGlobalConfig" |
NewerOlder