I had to Install-Package Microsoft.AspNet.Web.Optimization
and add System.ServiceModel in References but then I get these errors:
Severity Code Description File Line
in umbraco_client\Controllers\SurfaceControllers\FeedsSurfaceController.cs:
The namespace 'uLocalGovMVC.Controllers.SurfaceControllers' already contains a definition for 'FeedsSurfaceController'
Type 'FeedsSurfaceController' already defines a member called 'NewsRssFeed' with the same parameter types
in umbraco_client\Controllers\SurfaceControllers\SiteNavigationSurfaceController.cs:
The namespace 'uLocalGovMVC.Controllers.SurfaceControllers' already contains a definition for 'SiteNavigationSurfaceController'
Type 'SiteNavigationSurfaceController' already defines a member called 'DisplayAZEntries' with the same parameter types
in App_Start\BundleConfig.cs
The namespace 'uLocalGovMVC' already contains a definition for 'BundleConfig'
Type 'BundleConfig' already defines a member called 'RegisterBundles' with the same parameter types
in App_Start\FilterConfig.cs:
The namespace 'uLocalGovMVC' already contains a definition for 'FilterConfig'
Type 'FilterConfig' already defines a member called 'RegisterGlobalFilters' with the same parameter types
in App_Start\WebApiConfig.cs:
The namespace 'uLocalGovMVC' already contains a definition for 'WebApiConfig'
Type 'WebApiConfig' already defines a member called 'Register' with the same parameter types
in Controllers\SurfaceControllers\FeedsSurfaceController.cs:
The namespace 'uLocalGovMVC.Controllers.SurfaceControllers' already contains a definition for 'FeedsSurfaceController'
Type 'FeedsSurfaceController' already defines a member called 'NewsRssFeed' with the same parameter types
in Controllers\SurfaceControllers\LocationController.cs:
The namespace 'uLocalGovMVC.Controllers.SurfaceControllers' already contains a definition for 'LocationController'
Type 'LocationController' already defines a member called 'FindYourNearestPost' with the same parameter types
in \Controllers\SurfaceControllers\SiteNavigationSurfaceController.cs:
The namespace 'uLocalGovMVC.Controllers.SurfaceControllers' already contains a definition for 'SiteNavigationSurfaceController'
Type 'SiteNavigationSurfaceController' already defines a member called 'DisplayAZEntries' with the same parameter types
in Global.asax.cs:
The namespace 'uLocalGovMVC' already contains a definition for 'MvcApplication'
Type 'MvcApplication' already defines a member called 'Application_Start'
The namespace 'uLocalGovMVC' already contains a definition for 'MvcApplication'
in mapping\Global.asax.cs:
Type 'MvcApplication' already defines a member called 'Application_Start' with the same parameter types
in umbracoclient\AppStart\RouteConfig.cs:
The namespace 'uLocalGovMVC' already contains a definition for 'RouteConfig'
Type 'RouteConfig' already defines a member called 'RegisterRoutes' with the same parameter types
in umbracoclient\AppStart\WebApiConfig.cs:
The namespace 'uLocalGovMVC' already contains a definition for 'WebApiConfig'
Type 'WebApiConfig' already defines a member called 'Register' with the same parameter types
Warning Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
in Controllers\SurfaceControllers\LocationController.cs:
Cannot implicitly convert type 'string' to 'System.Web.Mvc.ActionResult'
in Global.asax.cs:
The call is ambiguous between the following methods or properties: 'WebApiConfig.Register(HttpConfiguration)' and 'WebApiConfig.Register(HttpConfiguration)'
The call is ambiguous between the following methods or properties: 'FilterConfig.RegisterGlobalFilters(GlobalFilterCollection)' and 'FilterConfig.RegisterGlobalFilters(GlobalFilterCollection)'
The call is ambiguous between the following methods or properties: 'RouteConfig.RegisterRoutes(RouteCollection)' and 'RouteConfig.RegisterRoutes(RouteCollection)'
The call is ambiguous between the following methods or properties: 'BundleConfig.RegisterBundles(BundleCollection)' and 'BundleConfig.RegisterBundles(BundleCollection)'
The call is ambiguous between the following methods or properties: 'WebApiConfig.Register(HttpConfiguration)' and 'WebApiConfig.Register(HttpConfiguration)'
The call is ambiguous between the following methods or properties: 'FilterConfig.RegisterGlobalFilters(GlobalFilterCollection)' and 'FilterConfig.RegisterGlobalFilters(GlobalFilterCollection)'
in mapping\Global.asax.cs:
The call is ambiguous between the following methods or properties: 'RouteConfig.RegisterRoutes(RouteCollection)' and 'RouteConfig.RegisterRoutes(RouteCollection)'
The call is ambiguous between the following methods or properties: 'BundleConfig.RegisterBundles(BundleCollection)' and 'BundleConfig.RegisterBundles(BundleCollection)'
in umbraco_client\Controllers\SurfaceControllers\LocationController.cs:
Operator '&' cannot be applied to operands of type 'string' and 'string'
Cannot implicitly convert type 'string' to 'System.Web.Mvc.ActionResult'
It does depend on how you've gotten umbraco into visual studio, if you have an existing website and you bring it into Visual studio, (via open website) then i've never really been able to get it to build. I don't know if there are some tricks to this
It works fine if you right click "view in browser", but if you bring an existing empty umbraco build into VS it will come back with all sorts of errors.- not sure it's a starter kit thing. ?
I got a build of this working when I was first getting used to Umbraco and just wanted to see what a sample site looked like (and this one seemed popular, even if I'm nothing to do with local authorities).
The process for me was as follows:
Run VS
Use Nuget to install Umbraco (Installed 7.2.8)
Run Umbraco on my localhost
Go to install packages (in the backoffice of Umbraco) and install the starter kit zip file.
Stop my local host, accept the changes the starter kit made to my
local instance
Perhaps if I'd done that at the start I'd have been ok but I was trying to get an existing website running :-\
I'm sure it could be done and if I have more time down the line I may try that and then see if I can move the changed files back in but it's knowing which ones need to be copied and which ones don't!
Visual Studio and uLocalGovMVC
has anyone managed to get a build working?
I had to Install-Package Microsoft.AspNet.Web.Optimization and add System.ServiceModel in References but then I get these errors:
Severity Code Description File Line
in umbraco_client\Controllers\SurfaceControllers\FeedsSurfaceController.cs:
The namespace 'uLocalGovMVC.Controllers.SurfaceControllers' already contains a definition for 'FeedsSurfaceController' Type 'FeedsSurfaceController' already defines a member called 'NewsRssFeed' with the same parameter types
in umbraco_client\Controllers\SurfaceControllers\SiteNavigationSurfaceController.cs:
The namespace 'uLocalGovMVC.Controllers.SurfaceControllers' already contains a definition for 'SiteNavigationSurfaceController' Type 'SiteNavigationSurfaceController' already defines a member called 'DisplayAZEntries' with the same parameter types
in App_Start\BundleConfig.cs
The namespace 'uLocalGovMVC' already contains a definition for 'BundleConfig' Type 'BundleConfig' already defines a member called 'RegisterBundles' with the same parameter types
in App_Start\FilterConfig.cs:
The namespace 'uLocalGovMVC' already contains a definition for 'FilterConfig' Type 'FilterConfig' already defines a member called 'RegisterGlobalFilters' with the same parameter types
in App_Start\WebApiConfig.cs:
The namespace 'uLocalGovMVC' already contains a definition for 'WebApiConfig' Type 'WebApiConfig' already defines a member called 'Register' with the same parameter types
in Controllers\SurfaceControllers\FeedsSurfaceController.cs:
The namespace 'uLocalGovMVC.Controllers.SurfaceControllers' already contains a definition for 'FeedsSurfaceController' Type 'FeedsSurfaceController' already defines a member called 'NewsRssFeed' with the same parameter types
in Controllers\SurfaceControllers\LocationController.cs:
The namespace 'uLocalGovMVC.Controllers.SurfaceControllers' already contains a definition for 'LocationController' Type 'LocationController' already defines a member called 'FindYourNearestPost' with the same parameter types
in \Controllers\SurfaceControllers\SiteNavigationSurfaceController.cs:
The namespace 'uLocalGovMVC.Controllers.SurfaceControllers' already contains a definition for 'SiteNavigationSurfaceController' Type 'SiteNavigationSurfaceController' already defines a member called 'DisplayAZEntries' with the same parameter types
in Global.asax.cs:
The namespace 'uLocalGovMVC' already contains a definition for 'MvcApplication' Type 'MvcApplication' already defines a member called 'Application_Start' The namespace 'uLocalGovMVC' already contains a definition for 'MvcApplication'
in mapping\Global.asax.cs: Type 'MvcApplication' already defines a member called 'Application_Start' with the same parameter types
in umbracoclient\AppStart\RouteConfig.cs:
The namespace 'uLocalGovMVC' already contains a definition for 'RouteConfig' Type 'RouteConfig' already defines a member called 'RegisterRoutes' with the same parameter types
in umbracoclient\AppStart\WebApiConfig.cs:
The namespace 'uLocalGovMVC' already contains a definition for 'WebApiConfig' Type 'WebApiConfig' already defines a member called 'Register' with the same parameter types
Warning Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
in Controllers\SurfaceControllers\LocationController.cs:
Cannot implicitly convert type 'string' to 'System.Web.Mvc.ActionResult'
in Global.asax.cs: The call is ambiguous between the following methods or properties: 'WebApiConfig.Register(HttpConfiguration)' and 'WebApiConfig.Register(HttpConfiguration)' The call is ambiguous between the following methods or properties: 'FilterConfig.RegisterGlobalFilters(GlobalFilterCollection)' and 'FilterConfig.RegisterGlobalFilters(GlobalFilterCollection)' The call is ambiguous between the following methods or properties: 'RouteConfig.RegisterRoutes(RouteCollection)' and 'RouteConfig.RegisterRoutes(RouteCollection)' The call is ambiguous between the following methods or properties: 'BundleConfig.RegisterBundles(BundleCollection)' and 'BundleConfig.RegisterBundles(BundleCollection)' The call is ambiguous between the following methods or properties: 'WebApiConfig.Register(HttpConfiguration)' and 'WebApiConfig.Register(HttpConfiguration)' The call is ambiguous between the following methods or properties: 'FilterConfig.RegisterGlobalFilters(GlobalFilterCollection)' and 'FilterConfig.RegisterGlobalFilters(GlobalFilterCollection)'
in mapping\Global.asax.cs:
The call is ambiguous between the following methods or properties: 'RouteConfig.RegisterRoutes(RouteCollection)' and 'RouteConfig.RegisterRoutes(RouteCollection)' The call is ambiguous between the following methods or properties: 'BundleConfig.RegisterBundles(BundleCollection)' and 'BundleConfig.RegisterBundles(BundleCollection)'
in umbraco_client\Controllers\SurfaceControllers\LocationController.cs:
Operator '&' cannot be applied to operands of type 'string' and 'string' Cannot implicitly convert type 'string' to 'System.Web.Mvc.ActionResult'
Not really sure where to go from here
Hi
It does depend on how you've gotten umbraco into visual studio, if you have an existing website and you bring it into Visual studio, (via open website) then i've never really been able to get it to build. I don't know if there are some tricks to this
It works fine if you right click "view in browser", but if you bring an existing empty umbraco build into VS it will come back with all sorts of errors.- not sure it's a starter kit thing. ?
I'll try it with copying the files manually again then. Thanks :-)
I got a build of this working when I was first getting used to Umbraco and just wanted to see what a sample site looked like (and this one seemed popular, even if I'm nothing to do with local authorities).
The process for me was as follows:
That was it, and it worked perfectly.
HTH.
Perhaps if I'd done that at the start I'd have been ok but I was trying to get an existing website running :-\
I'm sure it could be done and if I have more time down the line I may try that and then see if I can move the changed files back in but it's knowing which ones need to be copied and which ones don't!
is working on a reply...