Copy file(s) from one project to another using post build event…VS2010

xcopy “$(ProjectDir)Views\Home\Index.cshtml” “$(SolutionDir)MEFMVCPOC\Views\Home” and if you want to copy entire folders: xcopy /E /Y “$(ProjectDir)Views” “$(SolutionDir)MEFMVCPOC\Views” Update: here’s the working version xcopy “$(ProjectDir)Views\ModuleAHome\Index.cshtml” “$(SolutionDir)MEFMVCPOC\Views\ModuleAHome\” /Y /I Here are some commonly used switches with xcopy: /I – treat as a directory if copying multiple files. /Q – Do not display the files being copied. /S – … Read more

remove nuget package restore from solution

I didn’t look very well, there’s another property added to the project files: <RestorePackages>true</RestorePackages> Just have to remove this as well as all these lines manually from all *.csproj files: <Import Project=”$(SolutionDir)\.nuget\nuget.targets” /> UPDATE: Turns out it’s a persistent little bugger, if you’re manually editing your project files, make sure to close the solution and … Read more

Change C++/CLI project to another framework than 4.0 with vs2010

This shows up when you press F1 in the Framework and References dialog: By default for new projects, the targeted framework is set to .NET Framework 4. The IDE does not support modifying the targeted framework, but you can change it manually. In the project file (.vcxproj), the default targeted framework is represented by the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)