I'm playing around with WebMatrix and I'd just like to explore some of the razor stuff behind the scenes... but my Reflector skills (and my brain) are failing me. Does anyone know offhand what assembly I should start looking in (and/or a location for it)?
All the assemblies are installed into Program Files as well as into the GAC. The local folder is:
C:\Program Files\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies
Related
I'm busy with a windows phone app and need to use a expandable list control. After some searching I found that one can just download and add a reference to the Windows Phone Toolkit.
The instructions on what .dll file to use and add to your project seem to be a bit out dated. Or at least the instructions I'm finding. Apparently you have to add the dll file to you project located here:
C:\Program Files\Microsoft SDKs\Windows Phone\v7.1\Toolkit\Aug11\Bin\Microsoft.Phone.Controls.Toolkit.dll
But the directories in my PC is not the same. I can follow up to here:
C:\Program Files\Microsoft SDKs\Windows Phone\v7.1\
Then there's no 'Toolkit' folder, etc. I just wanted to find out if someone can point out where to find this .dll that I have to reference on my project?
Thanks in advance!
you can download the latest toolkit and get more information on it from here http://silverlight.codeplex.com/releases/view/94435. I hope it helps
This is not so much a question but rather a comment since I've found the answer already.
Problem:
I was moving a VS2008 project to VS2010, which uses the Microsoft.ManagementConsole namespace. The reference of the project targeted the DLL registered in the GAC, namely the file C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ManagementConsole\3.0.0.0__31bf3856ad364e35\Microsoft.ManagementConsole.dll. However VS2010 did not accept the reference anymore, even though I checked that the DLL was still in the GAC with the command gacutil /l.
Solution:
On MSDN: How-To Create a Hello World Snap-in I found a hint in a comment. Instead of linking the DLL in the GAC, I'd rather link the original DLL in the folder C:\Program Files\Reference Assemblies\Microsoft\mmc\v3.0\microsoft.managementconsole.dll. Builds like a charm.
Hope this helps somebody with the same problem!
Really not sure what's happened here, but I was playing with pex and moles in a project I then got pex to generate tests for the web client which is MVC. This caused all sorts of build problems in the project so I reverted the project back (source control using HG). I still got all the same build issues, which included references missing and other errors relating to the missing references. When I deleted the references in the solution, things like system.web.mvc and system.componentmodel.dataannotations, and tried to re-add them from GAC they are not visible in the GAC. I can't understand how pex can have done this. Now all of my projects in visual studio have the same issues with DataAnnotations, Mvc and a couple of other references? I can't do anything with any of them. I've also noticed that all the links to the pex forums seem to be dead?
I think I can recover most of my work as it's a VM and I have a snapshot that is not to old plus I work out of dropbox so can get all my source back. I just can't understand how this has happened any body have any advice, experiences of the same nature. I was really starting to enjoy pex and moles but this has put me right off.
It appears that the Parameterized Unit Test macro has deleted the System.Web.Mvc.dll and System.ComponentModel.DataAnnotations.dll from the file system.
You need to get the assemblies from another machine and manually add System.Web.Mvc.dll to C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies and System.ComponentModel.DataAnnotation.dll to C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\ respectively.
Hope that works out for you.
In VS 2010 express there are a few library projects (dlls) attached to the application project. When building the solution the dlls output to bin/Release/. Is there a way to have the .exe output to bin/Release and the dlls to bin/Release/dll?
This requires either a .config file with the <probing> element or implementing AppDomain.AssemblyResolve so that the CLR can find these DLLs. You'll have a deployment problem too, you have to convince ClickOnce to publish these DLLs. Realistically should only attempt this with the retail edition of Visual Studio so you can create a Setup project.
Fwiw: your customer won't mind that the DLLs are in the same folder as the EXE. I think most actually strongly prefer this. I do.
You could always have a post build event on the application project that copies all .dll files to a dll directory.
However the assembly loader will not be able to find the dll file and you application will not start.
I installed the facebook helper package in my Visual Studio 2010 MVC project. Using it currently breaks my site because it can't find the classes it uses from the WebMatrix.Data and WebMatrix.WebData libraries. I can use them in my cs files, but from the facebook.cshtml file they appear to be inaccessible.
Has anybody encountered this? I know this all beta but still.
Thanx
Rinze
Ok, the solution to this is copying the files to the bin folder.
Syg, see my answer on the similar question "ASP.NET MVC 3 - Issues with microsoft-web-helpers v1.1".
Copy the dll files to your site bin folder, which are in
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies
on my pc