web-site-project

Web.config transformation with SlowCheetah and ASP.NET Web site project

元气小坏坏 提交于 2019-12-08 19:28:46
问题 I'm trying to use SlowCheetah XML Transforms with an ASP.NET Web site project (not an ASP.NET Web Application Project) in Visual Studio 2010. When I right click on the Web.config file in my ASP.NET Web site project, I don't see " Add Transform " item in the contextual menu. (Note: it works well when a try with an ASP.NET Web Application Project). Is it possible to use SlowCheetah with an ASP.NET Web site project ? Or it's impossible "by design" because this kind of project has limitations ?

How to create _custom.scss to override variable in Bootstrap 4 alpha 6

 ̄綄美尐妖づ 提交于 2019-12-07 03:11:45
问题 I am trying to customize a Bootstrap 4 alpha 6 theme. I want to copy settings from _variable.scss file to _custom.scss to override. But I didn't find _custom.scss file in source code. How do I add this _custom.scss file in my project? 回答1: I noted your issue here, here and here: ☐ Consider implementing a _custom.scss for easier, built-in variable overrides? So because your Bootstrap 4 didn't ship with a _custom.scss file, you only need to re-create bootstrap/scss/_custom.scss . Then edit

Prevent ASP.NET Website project from building certain directories by using Web.config?

爷,独闯天下 提交于 2019-12-05 22:43:00
问题 While programming, the longest part is a build on my ASP.NET Website project is the "Building directory" process seen below. (Note: I don't have the liberty to turn this into a Web Application with a .csproj build file. Wish I did.) The contents of the directories seen below are not changing although there might be some dependencies in the App_Code/ subfolders that do change. Is there any way for me to stop some directories from building using Web.config , to shorten a compile of my dev copy?

extending asp.net control in the website project

杀马特。学长 韩版系。学妹 提交于 2019-12-05 19:36:52
when I extend an asp.net control and place the extended control class in, say, Applicaton_code (without specifying the namespace) how do i register the control to use it on a webpage? what assembly name and namespace should be specified? use : <%@Register TagPrefix="local" Assembly="App_Code" Namespace="Controls" %> Also, you HAVE to defines a namespace where to put your controls (from memory, when adding class to App_code, no namespace is generated by default). namespace Controls { public class control1 : WebControl { } } and then , in the aspx file <local:control1 runat="server", id=

When does an ASP.NET Website project recompile?

感情迁移 提交于 2019-12-05 16:12:32
As Maurico and codeka first stated, don't use the default InProc sessions if you don't want your sessions to be affected by website recompiles and application recycles. A list of what causes whole website recompile: By default, when any change is made to a top-level file in a Web site, the whole site is recompiled. Top-level files include the global.asax file and all files in the bin/ and App_Code/ folders. modifying web.config a configuration include file change, if the SectionInformation.RestartOnExternalChanges property is true <section name="MyAppSettings" type="System.Configuration

Publish Profile not working when building website project

落花浮王杯 提交于 2019-12-05 02:11:54
I recognized that Web Deployment Projects are not supported in Visual Studio 2012 . After reading this article , I tried to get Publish Profiles to work. After installing Visual Studio Web Publish Update I was able to publish web site projects and web application projects with the new publish dialog in Visual Studio 2012 . Because we are using TFS 2010 Team Build I tried to use publish profile via MSBuild parameters. But the following statement only works to publish web application projects. MSBuild.exe MyWebs.sln /p:Configuration=Release /p:DeployOnBuild=true;PublishProfile=DeployToDirectory

Why do I need a recompiled page when a method used by it changes?

ⅰ亾dé卋堺 提交于 2019-12-04 06:26:57
问题 I have an aspx page that used a method in a class in the App Code folder, doSomething(int[] x) . I changed the function definition to use an IEnumerable instead of an array: doSomething(IEnumerable<int> x) . Next, I precompiled the web site, using "allow web site to be updatable", and published the new App_Code.dll. Now, the precompiled version of the page gives a Server error at runtime: "Method not found". If I also publish the DLL generated for the page, "App_Web_[page].aspx.[random].dll",

Temp path too long when publishing a web site project

谁说我不能喝 提交于 2019-12-03 18:59:43
问题 I am trying to publish an ASP.NET web site project using the Publish Web Site tool but get this error: ASPNETCOMPILER(0,0): Error ASPRUNTIME: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. I see that it is trying to copy the files to a very long path in AppData: Copying all files to temporary location below for package/publish: C:\Users\imx0\AppData\Local\Temp\1

Exclude files from web site deployment with msbuild

走远了吗. 提交于 2019-12-03 16:09:06
I have a web site project that I deploy using msbuild. In the project there are some files and folders that are needed for the build (e.g. the web.config part replacement files) but that I don't want to deploy to the target site. The best I could think of is a post-build target that removes these files, but I'd like to know if there is a way to have these files not copied to the output folder. You can select the files and set their "Build Action" to "ExcludeFromPackageFiles". That way visual studio will edit the csproj xml and you don't have to. bherto39 Hi Check this blog post out it saved my

How do I include thead in a runat=“server” table element?

萝らか妹 提交于 2019-12-03 15:14:04
问题 I'm upgrading a big web site project from Visual Studio 2010 to 2012. Throughout my project, I have table elements with the runat="server" attribute. Many of these have thead elements inside of them. When I open it in 2012 and and try to build, I get the following error: Value of type 'System.Web.UI.HtmlControls.HtmlGenericControl' cannot be converted to 'System.Web.UI.HtmlControls.HtmlTableRow' Removing the runat="server" attribute or commenting out thead fixes it. Commenting out only the tr