I was busy with a SharePoint 2010 Visual Webpart in Visual Studio 2012. Soon after adding and removing controls the auto generated .ascx.g.cs stopped updating correctly.
If you are experiencing this issue make sure you have updated to the latest update for Visual Studio 2012.
Currently it is at Update 4, goto the following download link to get your update:
Visual Studio 2012 Update 4
In this series of posts we are going to setup a SharePoint 2013 development environment on a machine running windows 8. We will use Hyper-V to manage the virtual machines. We will be using Windows Server 2012 R2 on both the virtual machines as displayed in the diagram below.
Windows 8 hyper-v sharepoint 2013 dev environment
Part 1 – Enable Hyper-V on Windows 8
To run the various virtual machines we are going to be using Hyper-V
Make sure you have Hyper-V enabled:
- Press the windows key and type “add Remove”
- Select Settings (if needed)
- Choose “Add Remove Programs”
Add remove programs
- Choose Turn Windows features on or off
Turn windows features on or off
- Select Hyper-V
- Click “OK”
- You may need to reboot your pc
So learning to do new things require an environment to work in. I prefer to create a new sub site so that I can prototype, play around and delete stuff without having to worry about existing code and features breaking.
- Open your root SharePoint website, this is not under SharePoint Central Administration!
- Site Actions
- Site Settings
- Under Site Administration click Sites and workspaces
- Create / Remove sites here
SharePoint 2010 Create Sub Site
SharePoint 2010 Sites and Workspaces