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
0 votes
0 answers
43 views

Not able to debug Sitecore solution from Visual Studio [duplicate]

Our Sitecore solution is on Helix architecture and JSS. Published Foundation, Feature, Project dlls and referenced dlls also. I'm trying to debug one rendering content resolver but the breakpoint is ...
Thanoj's user avatar
  • 88
1 vote
3 answers
173 views

Cannot get debugger to attach to code for new module project deployed to new Sitecore site

I'm working on a Sitecore module, and I cannot get symbols to load for debugging. I created a new web application project in Visual Studio; I deleted everything from it except for the module page I ...
Erica Stockwell-Alpert's user avatar
1 vote
1 answer
153 views

ItemPathMatch conversion error when attempting to Publish using Sitecore CLI/Sitecore for Visual Studio

Sitecore Version - 10.2 CLI Version 5.1.12 During the publishing process, I receive the following error during the Build Serialized Item Package step Error Building Package 'C:\project-longhorse\...
Nick Benedict's user avatar
0 votes
1 answer
89 views

Publish option in Sitecore Helix visual studio extension

By default, while creating a project, this extension installs docker deploy configurations in the visual studio solution. Do we need to manually modify config files if we just want to deploy all files ...
Sukhjeevan's user avatar
0 votes
0 answers
121 views

Add a message in experience editor if datasource is not selected for a component in toolbox SXA

I need to add a message stating "Select the data source" in Experience Editor programmatically for Content Authors when the data source is null or the model is empty. I'm using the SXA ...
Siddhi Kamat's user avatar
0 votes
1 answer
41 views

Clear extra Sitecore SXA html tags from the site pages

I have SXA site pages and I need to clear the extra Sitecore html tags (script,link). After div tag Specification: Sitecore SXA 10.2 Can anyone provide any help ?
Siddhi Kamat's user avatar
0 votes
2 answers
614 views

Context is null in GlassMapperConfigurator

I'm trying to access Sitecore 10.2 model fields using Glass.Mapper.Sc.92 version 5.8, and registered all Glass.Mapper services in GlassMapperConfigurator class. However facing the "Context is ...
Siddhi Kamat's user avatar
0 votes
2 answers
286 views

Is custom view rendering possible in Sitecore SXA?

I have tried clone rendering of inbuilt promo component in Sitcore SXA ,that is a controller rendering. Is it possible to create a custom view rendering? If yes, then how to access the SXA model ...
Siddhi Kamat's user avatar
0 votes
1 answer
120 views

Unable to make Visual studio model fields editable in experience editor for Sitecore SXA

I'm using a custom Sitecore SXA controller rendering for the first time with Visual Studio and I want to make the model fields in the .cshtml view file editable in Sitecore Experience editor. Is there ...
Siddhi Kamat's user avatar
2 votes
4 answers
724 views

Cannot debug the Sitecore code in Visual Studio

I tried the procedure mentioned in the link https://www.youtube.com/watch?v=bboda7Gj5Hc&list=PLLYksLXV8OcG3-fKtMJgDixBFo3kfeCpD&index=21. But the breakpoints does not get hit and plus the code ...
Siddhi Kamat's user avatar
1 vote
2 answers
687 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 ...
Jaydari's user avatar
  • 41
2 votes
2 answers
3k 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: ...
André Andrade's user avatar
4 votes
2 answers
1k 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 ...
Harsh Baid's user avatar
  • 1,994
0 votes
1 answer
192 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) ...
Alberto Castro's user avatar
2 votes
0 answers
337 views

SetSite failed for package Error when Loading Sitecore Rocks Package using Visual Studio 2019

When loading a project in Visual Studio 2019 the Sitecore Rocks refuses to load properly. The error information is listed below. <description>SetSite failed for package [SitecorePackage]Source: ...
Joseph Hobbins's user avatar
0 votes
1 answer
477 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 ...
SitecorePro's user avatar
1 vote
1 answer
223 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 ...
ilgiallomondadori's user avatar
0 votes
0 answers
1k 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 ...
NewbieHere's user avatar
1 vote
0 answers
54 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 ...
Pranav Bilurkar's user avatar
1 vote
3 answers
489 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 ...
Joost's user avatar
  • 1,897
0 votes
1 answer
101 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 ...
Jeyanth Praveenkumar's user avatar
1 vote
2 answers
431 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()....
Kautilya's user avatar
2 votes
0 answers
327 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> <...
NewbieHere's user avatar
0 votes
3 answers
344 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?
Don Cheadle's user avatar
2 votes
2 answers
312 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 ...
Don Cheadle's user avatar
0 votes
2 answers
305 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 ...
hofo's user avatar
  • 215
2 votes
0 answers
74 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 ...
Patrick Jones's user avatar
5 votes
2 answers
568 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' ...
Matthew Dresser's user avatar
1 vote
1 answer
346 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 ...
Corey Burnett's user avatar
1 vote
1 answer
191 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!
Martynka's user avatar
  • 151
1 vote
1 answer
179 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. ...
Michael's user avatar
  • 520
2 votes
2 answers
367 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 ...
joonu75's user avatar
  • 45
0 votes
2 answers
802 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?
goamn's user avatar
  • 215
0 votes
1 answer
565 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 ...
Chaitanya Gadkari's user avatar
2 votes
1 answer
141 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 ...
Emanuele Ciriachi's user avatar
2 votes
0 answers
159 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 ...
Sebastian Tecsi's user avatar
2 votes
1 answer
1k 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 ...
João Neto's user avatar
  • 2,051
8 votes
4 answers
13k 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 ...
Morten Ljungberg's user avatar
10 votes
2 answers
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 ...
nickwesselman's user avatar
1 vote
0 answers
131 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 ...
Roman's user avatar
  • 257
1 vote
1 answer
392 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 ...
Emanuele Ciriachi's user avatar
3 votes
1 answer
703 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,...
João Neto's user avatar
  • 2,051
4 votes
2 answers
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 ...
kiran's user avatar
  • 71
2 votes
1 answer
484 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 ...
Emanuele Ciriachi's user avatar
3 votes
1 answer
494 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 ...
jflsitecore's user avatar
9 votes
1 answer
2k 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 ...
Jay's user avatar
  • 305
0 votes
2 answers
936 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 ...
DaveBeta's user avatar
  • 173
2 votes
1 answer
123 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 ...
Ethan Schofer's user avatar
6 votes
3 answers
940 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 ...
Owen Niblock's user avatar
  • 1,512
3 votes
1 answer
272 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 ...
Marcel Gruber's user avatar