Questions tagged [visual-studio]

For Sitecore-specific questions related to Sitecore development in Visual Studio. This tag is not meant for general Visual Studio question, but rather only for those questions that specifically relate to Sitecore

Filter by
Sorted by
Tagged with
10
votes
2answers
2k views

System.EntryPointNotFoundException when loading Sitecore 9.0

On Sitecore 9.0, when I attempt to load any URL, I get an Owin startup exception with the following details: System.EntryPointNotFoundException: The following errors occurred while attempting to load ...
9
votes
1answer
1k views

Working on Habitat with VS 2017

Set up the habitat solution all nice and smooth. However when trying to run the gulp task to get unicorn to sync I get a bunch of errors like this in the gulp output: error MSB4019: The imported ...
8
votes
3answers
10k views

Excluding files like web.config when using publishing in VS 2017

I am trying to find out how to exclude files when using the publishing feature in VS (2017 to be exact). The documentation is not great, but it seems adding <ItemGroup> <Content ...
6
votes
3answers
740 views

Why do we need global.asax in Sitecore VS solution?

I'm just going through the Sitecore documentation for setting up a Visual Studio project. One of the steps is to update the global.asax file in your solution: In the Visual Solution folder, copy ...
5
votes
2answers
338 views

How to view history of yml files (before they have pending changes)

Is there any way in regular Visual Studio (2017) to view the history of individual yml (unicorn serialization) files? Once you have changed a serialized Sitecore item it appears under the 'Changes' ...
4
votes
2answers
392 views

Adding Views - VS Adds Scaffolding and NuGets

Can people suggest a good way to add views to a project in Visual Studio? The standard MVC way adds scaffolding (Folders named for controllers) and NuGet packages (MVC, Razor, WebPages, etc...) I'm ...
4
votes
2answers
2k views

TDS project not loading while migrating solution from VS 2013 to VS 2017

I am in the process of migrating my solution from VS 2013 to VS 2017. I installed the correct version of TDS (TDS 5.6.0.15 for VS 2017) and when trying to open the solution in VS 2017, TDS projects ...
3
votes
1answer
249 views

Field names in content editor are wrong (multiple colons and no capitalisation) but fine in VS

I have a situation where I have a template and thus content items of that template whereby the field names seem to have problems in the content editor but not in visual studio. Notice below that ...
3
votes
1answer
584 views

Why I am getting these issues with Sitecore Helix Visual Studio Templates (Anders Laub) on Visual Studio 2017?

I've installed the Sitecore Helix Visual Studio Templates from Anders Laub (laub plus co) and created an empty Helix project running Visual Studio 2017 in Administrator mode. Once I add a new Project,...
3
votes
2answers
250 views

Can we use Sitecore TDS with Visual Studio 2022 Preview 2?

On a new machine, I tried installing VS 2022 and TDS but TDS gives an error that it doesn't detect VS in that system. So the question is - Can we use Sitecore TDS with Visual Studio 2022 Preview 2 by ...
3
votes
1answer
468 views

Sitecore Commerce Demo (Sitecore.Demo.Retail) - problem with gulp / MSBuild 15

EDIT: more details I'm working on converting the Sitecore.Demo.Retail project from VS 2015 (.NET core preview) to VS 2017 and latest .NET Core. The solution now builds perfectly fine in Visual ...
2
votes
2answers
242 views

Should you create your Visual Studio Solution inside the Sitecore website root?

By Sitecore website root I mean the SIM-installed site at C:/inetpub/MySCSite1/Website Or should the Visual Studio solution, and thus source control base, be OUTSIDE/separate from the Sitecore ...
2
votes
2answers
572 views

Error Another setup is already running when trying to install TDS on VS2019

I have a Sitecore 9.3 XP0 instance installed on my machine and now I'm trying to set up the TDS v6.0.0.31 on my Visual Studio 2019 v16.10.1, but whenever I install it the following error is thrown: ...
2
votes
1answer
109 views

Developing a Module as a Visual Studio Project: how to copy the relevant files upon build? How to organise the VS Project?

I developed a Sitecore Control in its own separate Visual Studio Project. In order for it to work, it needs (among other things) to have some of its files copied to the Startup Project. I have been ...
2
votes
1answer
696 views

How to fix the Global.asax warnings in a Sitecore 9 (Update-1) Visual Studio solution?

In the Sitecore® Experience Solution Developer Course you learn to set up a Visual Studio solution for Sitecore 8 by doing the following steps: Create a new ASP.NET Web Application using the Empty ...
2
votes
1answer
116 views

TDS File Replacement per user

I am using TDS File Replacement to manage configs. I would like to be able to do this per user, so each user can set up their environment however they wish. Right now, each user would need his or her ...
2
votes
2answers
333 views

Error while trying to connect to Sitecore using VS 2015

I'm trying to connect to my single-instance of Sitecore hosted on Azure using Visual Studio 2015 (with the Sitecore Rocks plugin). I get this error message saying 'Welcome to Sitecore, do you want to ...
2
votes
1answer
446 views

Sitecore Rocks stuck in the "Add New Item" menu whilst connecting using Good Old Web Sevice? [closed]

I am using Visual Studio Professional 2013, and Sitecore 8.1. My project is configured using the Good Old Web Service. Whenever I try to add a new item, all I get in the dialog where I'm supposed to ...
2
votes
0answers
64 views

Migrating Helix-based csproj to VS 2017 format: Published files go to wrong place

As part of a migration to Sitecore 9.1.1 we are updating our solution to not only be VS2017 compatible, but trying to take advantage of migrating away from both packages.config and the VS2015 csproj ...
2
votes
0answers
137 views

TDS File Replacement for folders not working

My TDS project has 2 Source Web Projects selected in Properties, WebProj1 and WebProj2 and I want to use TDS File Replacement to deploy some front end folders that to the website root. After I am ...
1
vote
1answer
377 views

Sitecore Rocks Installation seems corrupted. What to do?

Having recently moved my development environment to another machine, I discovered that Sitecore Rocks no longer works as before; in particular, I cannot access the "Design Template" menu ...
1
vote
3answers
308 views

Cannot run OData Connected Service tool and compatiblity errors

After upgrading to XC 9.3 I could not run the OData Connected Service tool. I fixed this by updating the Microsoft.OData.Client to version 7.6.3, but while regenerating the ServiceProxy for XC 9.3 I ...
1
vote
2answers
236 views

Insert Image in Div style property using View Rendering

I am trying to add an image in the div style property, above which some text would be shown, Below is the code I wrote : <div class="c-tile -red " style="background-image:url(@Html.Sitecore()....
1
vote
1answer
282 views

Why can't I install Sitecore.Kernel v9.1.1 via Nuget?

I am upgrading an old VS project that was built using Sitecore 7.2. I have changed the target .NET Framework to 4.7.1. Now I am trying to install Sitecore.Kernel v9.1.1 via Nuget. However when I ...
1
vote
1answer
152 views

Sitecore Rocks icons not loading in "Set Icon..." menu

I can't select an icon from Sitecore Rocks "Set Icon.." menu, as the selection windows is always empty - previously it working fine. I already tried restarting VS, Sitecore and my PC. Thanks!
1
vote
1answer
138 views

TDS creating duplicate properties for component in TdsCodeGen.cs

For some reason, TDS has started creating duplicate properties for one of my "constants" partial classes as well as the associated interface in my TdsCodeGen.cs. It's only doing it for one component. ...
1
vote
0answers
46 views

How to build Sitecore Application with Visual Studio 2017 with MVC pattern OR HELIX methodology? [closed]

As i am new to sitecore and though i have basic understanding on how to create site through sitecore's content editor and using CMS. Now, i want to create a web application/website using Visual ...
1
vote
0answers
166 views

<projectname>.wpp.targets ignores Release build

We are facing an issue with <projectname>.wpp.targets file. Here is our .wpp.target file: <Project> <!-- Exclude Sitecore assemblies --> <ItemGroup> <...
1
vote
0answers
111 views

TDS Package Bundling does not work with NuGet Package Generation

I am attempting to separate and version the Helix Foundation Layer modules into its own solution. I am using TDS/VS2017/Sitecore_8.1U2. Based on documentation, I would like to generate an Update ...
0
votes
3answers
229 views

Should ConnectionStrings.config be in source control/VS?

Or alternatively should ConnectionStrings.config just be left up to the server environment and never part of your VS publish?
0
votes
2answers
178 views

Using TDS and Visual Studio for development, Command-line Git for version control

Does TDS have to have access to the version control server? My development environment is in a VM with no network access. I use Visual Studio in there and then push the changes to version control from ...
0
votes
2answers
556 views

TDS 500 error, how do I test my TDS connection for more specific errors?

Getting an HTTP 500 error in Team Development for Sitecore when syncing or doing any operation. How do I test my TDS connection for more specific errors?
0
votes
1answer
86 views

Could not load type 'Sitecore.HealthCheck.DependencyInjection.HealthChecksBuilder'

I have 1 solution for Sitecore 9.3 with 4 projects (ASP .Net 4.7.1 MVC) using the Helix principles. I added references Sitecore.Kernel.NoReferences (9.0.180604), Sitecore.MVC.NoReferences (9.0.180604) ...
0
votes
1answer
466 views

Unable to compile and deploy Sitecore.Commerce.SDK project

I am following Sitecore documentation for installing Sitecore Commerce 8.2.1. I am done with almost all the steps required except the part Deploy the Commerce Engine. As mentioned there, if I unzipped ...
0
votes
2answers
852 views

Sitecore 8.2 Glass.Mapper strange intellisense errors in cshtml files

I'm having a lot of trouble getting our solution working in VS 2015 using the latest version of Glass. As suggested previously I have checked all projects and they now all have consistent DLL version ...
0
votes
1answer
28 views

SVS.Build should not specify a version

Sitecore Visual Studio Project The package reference 'SVS.Build' should not specify a version. Please specify the version in 'xxx\Packages.props' or set VersionOverride to override the centrally ...
0
votes
1answer
237 views

Sitecore.Kernel Version 10.0.0 fails to Install from Nuget Manager

I'm trying to install Sitecore.Kernel version 10.0.0 on Visual Studio 2019 solution running on .net framework 4.8 and I get following error. Severity Code Description Project File Line ...
0
votes
1answer
163 views

Sitecore 9.3 Visual Studio setup help - errors on deploy

I've started trying to follow the Sitecore Platform Essentials for Developer eLearning which is going fine, but when I deploy the project, the site just breaks on start with an error about no ...
0
votes
0answers
546 views

Error NU5012: Unable to find 'EnterpriseLibrary.Common.6.0.1304.0.nupkg'. Make sure the project has been built

I am trying to create a nuget package of my .NET Framework project - 'MyProj.csproj'. For this, I have created nuspec file using nuget.exe commands and have changed the assembly info as well. Now, on ...
0
votes
1answer
67 views

How to identify configured tasks in visual studio

I would like to understand an existing VS project build/publish scripts. this project was built using sitecore helix architecture. Currently i dont see any tasks configured for the project. In the ...